/* ==========================================================================
   DISEÑO SYSTEM & VARIABLES (Paleta de Colores Fría y Profesional)
   ========================================================================== */
:root {
    --bg-dark-base: #0b0e14;
    --bg-dark-surface: #111622;
    --bg-dark-card: #182030;
    --bg-dark-card-hover: #1e293d;
    --color-primary: #2b85e4;
    --color-primary-hover: #1d72d6;
    --color-accent: #00e5ff;
    --color-accent-rgb: 0, 229, 255;
    --color-text-white: #ffffff;
    --color-text-main: #e3e8f0;
    --color-text-muted: #8a99ad;
    --font-headers: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 4px;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Listas de Acciones (Botones) */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin: 0;
}

.actions li {
    list-style: none;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    color: var(--color-text-white);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

strong {
    color: var(--color-text-white);
    font-weight: 600;
}

/* ==========================================================================
   ESTRUCTURA DE CABECERA (Header & Logo)
   ========================================================================== */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
}

/* Header con fondo al hacer scroll (se activa por JS) */
#header.scrolled {
    background-color: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 3rem;
}

#header h1 a {
    color: var(--color-text-white);
    font-family: var(--font-headers);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

#header h1 a:hover {
    color: var(--color-accent);
}

#menu-toggle {
    color: var(--color-text-white);
    font-family: var(--font-headers);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#menu-toggle:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   MENÚ LATERAL DESLIZANTE
   ========================================================================== */
#menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 22rem;
    height: 100%;
    background-color: rgba(17, 22, 34, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

#menu.active {
    transform: translateX(0);
}

#menu .inner {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

#menu h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

#menu .links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#menu .links a {
    color: var(--color-text-main);
    font-family: var(--font-headers);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    padding: 0.25rem 0;
}

#menu .links a:hover {
    color: var(--color-accent);
    padding-left: 0.5rem;
}

#menu .close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

#menu .close:hover {
    color: var(--color-text-white);
}

/* Backdrop para cuando el menú está abierto */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   BANNER PRINCIPAL (Solid State Banner)
   ========================================================================== */
#banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 8rem 2rem 6rem 2rem;
    background: radial-gradient(circle at 80% 20%, rgba(43, 133, 228, 0.15), transparent 50%),
                linear-gradient(135deg, #0b0e14 0%, #151d2a 100%);
    position: relative;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90vh, 0 100%);
    margin-bottom: -10vh;
    z-index: 2;
}

#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark-base) 90%);
    opacity: 0.6;
    pointer-events: none;
}

#banner .inner {
    max-width: 50rem;
    position: relative;
    z-index: 3;
    animation: fadeIn 1s ease-out;
}

#banner .logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

#banner .logo .icon {
    font-size: 2.25rem;
    color: var(--color-text-white);
}

#banner h2 {
    font-size: 3.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #a2c6f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#banner p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-text-white);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 0.85rem 2rem;
    font-family: var(--font-headers);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

.button.primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(43, 133, 228, 0.3);
}

.button.primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    color: var(--color-text-white);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.button.icon-btn {
    gap: 0.75rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIONES GENERALES & WRAPPER
   ========================================================================== */
#wrapper {
    position: relative;
    z-index: 5;
    background-color: var(--bg-dark-base);
}

.wrapper {
    padding: 7rem 4rem;
    position: relative;
}

.wrapper .inner {
    max-width: 75rem;
    margin: 0 auto;
    width: 100%;
}

.major {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.major::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--color-accent);
}

/* ==========================================================================
   SECCIONES SPOTLIGHT (Sobre Nosotros & Cobertura)
   ========================================================================== */
.spotlight {
    background-color: var(--bg-dark-surface);
    display: flex;
    flex-direction: column;
}

.spotlight .inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.spotlight:nth-child(2n) .inner {
    flex-direction: row-reverse;
}

/* Placeholders de imágenes decorativas con degradados premium */
.image-placeholder {
    flex-shrink: 0;
    width: 24rem;
    height: 24rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-gradient-cool {
    background: linear-gradient(135deg, #152238 0%, #1e355c 50%, #2b85e4 100%);
}

.bg-gradient-map {
    background: linear-gradient(135deg, #0d1e36 0%, #102d54 50%, #00e5ff 100%);
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
}

.icon-highlight {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.image-placeholder:hover .icon-highlight {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-accent);
}

.spotlight .content {
    flex-grow: 1;
}

.spotlight .content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.spotlight .special {
    font-family: var(--font-headers);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-white);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.25rem;
}

.spotlight .special::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: var(--transition-smooth);
}

.spotlight .special:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.spotlight .special:hover::after {
    transform: translateX(5px);
}

/* Efecto Angular Inclinado en Spotlights */
.style1 {
    clip-path: polygon(0 0, 100% 5vh, 100% 100%, 0 calc(100% - 5vh));
    padding-top: 10rem;
    padding-bottom: 10rem;
    margin-top: -5vh;
    z-index: 3;
}

.style3 {
    clip-path: polygon(0 5vh, 100% 0, 100% calc(100% - 5vh), 0 100%);
    padding-top: 10rem;
    padding-bottom: 10rem;
    margin-top: -5vh;
    z-index: 3;
    background-color: var(--bg-dark-surface);
}

/* ==========================================================================
   SECCIÓN SERVICIOS (Features Grid)
   ========================================================================== */
.style2 {
    background-color: var(--bg-dark-base);
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 4;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.feature-category {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
}

.category-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    background-color: var(--bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background-color: var(--bg-dark-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 229, 255, 0.15);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(43, 133, 228, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.feature-item:hover .icon-box {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.actions.centered {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* ==========================================================================
   SECCIÓN CONTACTO (Footer / Formulario)
   ========================================================================== */
.style4 {
    background: radial-gradient(circle at 10% 80%, rgba(0, 229, 255, 0.08), transparent 40%),
                linear-gradient(to bottom, #111622 0%, #080a0f 100%);
    padding-top: 8rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 4;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* Formulario */
form {
    background-color: rgba(24, 32, 48, 0.5);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-family: var(--font-headers);
    color: var(--color-text-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

input[type="text"],
select,
textarea {
    background-color: rgba(11, 14, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    color: var(--color-text-main);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    background-color: rgba(11, 14, 20, 0.95);
}

option {
    background-color: var(--bg-dark-base);
    color: var(--color-text-main);
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-list li {
    position: relative;
    padding-left: 3.5rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.contact-list li.icon::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(0, 229, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.contact-list li a {
    color: var(--color-text-white);
    font-weight: 500;
}

.contact-list li a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */
#footer-bottom {
    background-color: #05070a;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    z-index: 5;
}

#footer-bottom .copyright {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

#footer-bottom .copyright li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem;
}

#footer-bottom .copyright li:last-child {
    border: none;
    padding-right: 0;
}

#footer-bottom .copyright a {
    color: var(--color-text-muted);
    border-bottom: 1px dotted;
}

#footer-bottom .copyright a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (CRO)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   DISEÑO RESPONSIVO (Media Queries)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    #header {
        padding: 1.5rem 2rem;
    }
    #header.scrolled {
        padding: 1rem 2rem;
    }
    .spotlight .inner {
        gap: 3rem;
    }
    .image-placeholder {
        width: 18rem;
        height: 18rem;
    }
    .icon-highlight {
        font-size: 4.5rem;
    }
    .contact-container {
        gap: 3rem;
    }
    form {
        padding: 2rem;
    }
}

@media screen and (max-width: 840px) {
    .spotlight .inner,
    .spotlight:nth-child(2n) .inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .image-placeholder {
        width: 100%;
        max-width: 22rem;
        height: 16rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    #banner h2 {
        font-size: 2.5rem;
    }
    #banner p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    #header {
        padding: 1rem;
    }
    #header h1 a {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
    }
    .wrapper {
        padding: 5rem 1.5rem;
    }
    #banner {
        padding-top: 7rem;
    }
    #banner h2 {
        font-size: 2rem;
    }
    #banner p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .button {
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
    form {
        padding: 1.5rem 1rem;
    }
    #menu {
        width: 100%;
    }
    #footer-bottom .copyright {
        flex-direction: column;
        gap: 0.75rem;
    }
    #footer-bottom .copyright li {
        border-right: none;
        padding-right: 0;
    }
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}
