/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #02010a;
    color: #f9fafb;
}

img {
    max-width: 100%;
    display: block;
}

/* Colores base */
:root {
    --primary: #f97316;
    --primary-soft: #fdba74;
    --primary-dark: #ea580c;
    --bg-dark: #020617;
    --bg-darker: #02010a;
    --border-soft: rgba(148, 163, 184, 0.35);
    --text-muted: #9ca3af;
}

/* Layout genérico */
.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav a {
    color: #f9fafb;
    text-decoration: none;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* HERO: pantalla completa */
.hero-full {
    position: relative;
    width: 100%;
    height: 100vh; /* full screen */
    background: #000;
    overflow: hidden;
}

.carousel-full {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero-full {
    position: relative;
    width: 100%;
    /* Altura tipo 16:9 sin ocupar toda la pantalla */
    aspect-ratio: 16 / 9;
    max-height: 70vh;       /* para que nunca se vuelva demasiado alto */
    background: #000;
    overflow: hidden;
}

.carousel-full {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-full {
    position: absolute;
    inset: 0;
    display: none;
}

.slide-full.active {
    display: block;
}

/* La imagen se adapta al contenedor 16:9 */
.slide-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.slide-full.active {
    display: block;
}

.slide-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7%;
    /* Mucho más claro que antes */
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
}


.hero-overlay h1 {
    font-size: 2.8rem;
    max-width: 700px;
    margin-bottom: 1rem;
}

.hero-overlay h1 span {
    color: var(--primary);
}

.hero-overlay p {
    max-width: 650px;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #0b0b10;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border-color: #e5e7eb;
    color: #f9fafb;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-soft);
    color: var(--primary-soft);
}

.btn-block {
    width: 100%;
}

/* Botones carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: none;
    background: rgba(15, 15, 20, 0.75);
    color: #f9fafb;
    cursor: pointer;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(15, 15, 20, 0.95);
}

.carousel-btn.prev {
    left: 0.75rem;
}

.carousel-btn.next {
    right: 0.75rem;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4b5563;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
}

/* Secciones generales */
.section {
    padding: 3.5rem 0;
    background: var(--bg-dark);
}

.section-alt {
    background: #050816;
}

.section-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.35rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Grids y cards */
.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

/* Imagen destacada empresa */
.image-card {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #020617;
}

.image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.8rem 1rem 1rem;
}

/* Cards genéricas */
.card {
    padding: 1.5rem 1.6rem 1.6rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-soft);
}

.card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.9rem;
    margin-bottom: 0.85rem;
}

.card h3 {
    margin-bottom: 0.7rem;
}

.card p {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 0.9rem;
    line-height: 1.65;
}

.card ul {
    list-style: disc;
    margin-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Proyectos */
.project-tag {
    font-size: 0.8rem;
    color: var(--primary-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* STACMO */
.stacmo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 2.25rem;
    align-items: flex-start;
}

.stacmo-list {
    list-style: disc;
    margin-left: 1.1rem;
    font-size: 0.95rem;
    color: #e5e7eb;
    line-height: 1.7;
    margin-top: 0.8rem;
}

.stacmo-card {
    padding: 1.8rem 1.7rem 1.7rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.23), #020617);
    border: 1px solid rgba(249, 115, 22, 0.75);
}

.stacmo-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 0.85rem;
}

.stacmo-card h3 {
    margin-bottom: 0.7rem;
}

.stacmo-card p {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.stacmo-note {
    font-size: 0.85rem;
    color: var(--primary-soft);
    margin-bottom: 1.1rem;
}

/* Contacto */
.contact-list {
    list-style: none;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 0.35rem;
}

.contact-list a {
    color: var(--primary-soft);
    text-decoration: none;
}

.contact-form {
    padding: 1.6rem 1.6rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-soft);
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #4b5563;
    background: #030712;
    color: #f9fafb;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    padding: 1.2rem 0;
    background: #050712;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-small {
    font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 960px) {
    .hero-overlay h1 {
        font-size: 2.1rem;
    }
    .grid-2,
    .cards-3,
    .stacmo-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .cards-3 {
        gap: 1.25rem;
    }
}

@media (max-width: 720px) {
    .nav {
        display: none; /* luego podemos hacer menú hamburguesa si quieres */
    }
    .hero-overlay {
        padding: 0 1.5rem;
    }
    .hero-overlay h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 3rem 0;
    }
}
