/* ============================================================
   AYCO — Hoja de Estilos Principal
   Versión: 1.0
   Descripción: Todos los estilos del sitio web AYCO.
   Las fuentes se cargan mediante @import para que este archivo
   sea completamente autónomo (sin <link> externos en el HTML).
   Font Awesome también se importa aquí.
   ============================================================ */

/* ====== IMPORTACIÓN DE FUENTES (sin links en HTML) ====== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&family=Montserrat:wght@300;400;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');


/* ====== VARIABLES GLOBALES ====== */
:root {
    /* PALETA AZUL + ROJO */
    --primary-blue: #0056a6;
    --dark-blue: #002f6c;
    --light-blue: #e6f2ff;
    --accent-red: #c0392b;
    --dark-red: #96281b;
    --light-red: #ffebee;
    --dark-gray: #1a1a2e;
    --medium-gray: #4a4a68;
    --light-gray: #f4f6fb;
    --white: #ffffff;
    --box-shadow: 0 8px 32px rgba(0, 47, 108, 0.13);
    --box-shadow-hover: 0 20px 50px rgba(0, 47, 108, 0.22);
    --box-shadow-red: 0 15px 40px rgba(192, 57, 43, 0.28);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.28s ease;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.4);
}


/* ====== RESET Y BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.5px;
}


/* ====== TIPOGRAFÍA ====== */

/* Fuente estilo Eurostile para títulos y elementos destacados */
h1, h2, h3, h4, h5, h6,
.logo h1,
.nav-links a,
.btn,
.section-title h2,
.service-content h3,
.project-overlay h3,
.contact-details h3,
.footer-links h4,
.footer-contact h4,
.stat-number,
.stat-text {
    font-family: 'Orbitron', 'Rajdhani', 'Arial Black', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}


/* ====== LAYOUT ====== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ====== HEADER ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 86, 166, 0.08);
}

header.scrolled {
    padding: 13px 0;
    background: linear-gradient(135deg, #001435 0%, var(--dark-blue) 60%, #0d3060 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

header.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.88);
}

header.scrolled .nav-links a:hover {
    color: #ff8f80;
}

header.scrolled .logo h1 {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

header.scrolled .axco-logo {
    color: rgba(255, 255, 255, 0.75);
    border-left-color: #ff8f80;
}

header.scrolled .axco-logo .subtitle {
    color: rgba(255, 255, 255, 0.6);
}

header.scrolled .mobile-menu-btn {
    color: rgba(255, 255, 255, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


/* ====== LOGO ====== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 65px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    font-weight: 800;
}

.logo span {
    color: var(--accent-red);
    -webkit-text-fill-color: var(--accent-red);
}

.axco-logo {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
    padding-left: 5px;
    border-left: 2px solid var(--accent-red);
    font-family: 'Orbitron', sans-serif;
}

.axco-logo .subtitle {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    margin-top: 2px;
}


/* ====== NAVEGACIÓN ESCRITORIO ====== */
.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    padding: 8px 0;
    position: relative;
    letter-spacing: 1.5px;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), #ff5252);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn {
    padding: 10px 28px;
    font-size: 0.85rem;
    margin-left: 10px;
    letter-spacing: 1.5px;
}


/* ====== BOTÓN MENÚ MÓVIL ====== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1002;
    padding: 5px;
    border-radius: 4px;
}

.mobile-menu-btn:hover {
    color: var(--accent-red);
    background: rgba(0, 86, 166, 0.05);
}


/* ====== MENÚ MÓVIL ====== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: var(--transition);
    padding: 100px 40px 40px;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.98);
}

.mobile-nav.active {
    right: 0;
    display: flex;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.mobile-nav li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav li:last-child {
    border-bottom: none;
    margin-top: 20px;
}

.mobile-nav a {
    display: block;
    padding: 18px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--dark-blue);
    transition: var(--transition-fast);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mobile-nav a:not(.btn) {
    position: relative;
}

.mobile-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), #ff5252);
    transition: var(--transition-fast);
}

.mobile-nav a:hover {
    color: var(--accent-red);
}

.mobile-nav a:hover::after {
    width: 60px;
}

.mobile-nav .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    margin-top: 10px;
    letter-spacing: 1.5px;
}

/* Overlay menú móvil */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}


/* ====== BOTONES ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 86, 166, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 86, 166, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #e05a4a 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.32);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(192, 57, 43, 0.45);
}


/* ====== HERO SECTION ====== */
/* 📸 FOTO HERO → Cambia la URL dentro de url('...') por tu imagen de fondo */
.hero {
    padding: 190px 0 130px;
    background: linear-gradient(140deg, rgba(0, 20, 60, 0.92) 0%, rgba(0, 47, 108, 0.85) 50%, rgba(192, 57, 43, 0.18) 100%),
                url('personal.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

/* Líneas diagonales animadas */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 60px,
        rgba(255, 255, 255, 0.022) 60px,
        rgba(255, 255, 255, 0.022) 61px
    );
    pointer-events: none;
    z-index: 1;
}

/* Resplandor radial animado */
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.28) 0%, transparent 65%);
    filter: blur(50px);
    z-index: 0;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { transform: scale(1);   opacity: 0.6; }
    to   { transform: scale(1.2); opacity: 1;   }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(192, 57, 43, 0.18);
    border: 1px solid rgba(192, 57, 43, 0.45);
    color: #ff8f80;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 10px #ff6b6b;
    animation: blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1;   }
    50%       { opacity: 0.2; }
}

.hero h1 {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    background: none;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.08;
    letter-spacing: 2px;
    font-weight: 800;
}

.hero h1 span.highlight {
    color: #ff8f80;
    -webkit-text-fill-color: #ff8f80;
    position: relative;
}

/* Líneas de subtítulo del hero: más pequeñas para caber en UNA sola línea.
   clamp() las escala según el ancho de pantalla; nowrap evita que se partan.
   Menos letter-spacing para que la línea más larga también quepa.
   Se reduce el espacio entre las líneas para que se lean como un bloque. */
.hero h1.hero-subtitle {
    font-size: clamp(0.8rem, 3.3vw, 1.9rem);
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.8rem;
    font-weight: 400;
    max-width: 560px;
    letter-spacing: 0.6px;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}


/* ====== SECCIONES GENERALES ====== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 86, 166, 0.2);
}

.section-title h2 {
    display: inline-block;
    font-size: 2.6rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.section-title:hover h2::after {
    width: 120px;
}

.section-title p {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.4px;
    line-height: 1.75;
}


/* ====== SERVICIOS ====== */
.services {
    background: linear-gradient(160deg, var(--light-gray) 0%, #eef3fb 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 166, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    transform: translateY(0);
    border: 1px solid rgba(0, 86, 166, 0.07);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 86, 166, 0.18);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--light-blue), #c8e0ff);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 25px 38px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 86, 166, 0.15);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(8deg);
    background: linear-gradient(135deg, var(--accent-red), #ff6b6b);
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.35);
}

.service-icon i {
    font-size: 1.9rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-content {
    padding: 0 38px 38px;
}

.service-content h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    letter-spacing: 1.2px;
}

.service-content p {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.4px;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Las tarjetas de servicio ahora son enlaces: quitamos el estilo de link */
a.service-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

/* Texto "VER GALERÍA →" al pie de cada tarjeta */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary, #c0392b);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: gap 0.25s ease;
}
.service-card:hover .service-link {
    gap: 14px;
}


/* ====== GALERÍAS DE SERVICIOS ====== */
.services-detail {
    padding: 80px 0;
    background: #f7f7f7;
}

/* Cada bloque de servicio. scroll-margin evita que el header fijo
   tape el título al saltar desde las tarjetas. */
.service-gallery {
    scroll-margin-top: 100px;
    margin-bottom: 70px;
}
.service-gallery:last-child {
    margin-bottom: 0;
}

/* Cuadrícula responsiva de fotos: se ajusta sola al ancho */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    background: #e5e5e5;
    transition: var(--transition);
}

/* Al seleccionar (pasar el cursor): la tarjeta se eleva, igual que proyectos */
.gallery-grid .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

/* Degradado AZUL que sube al seleccionar, igual que proyectos destacados */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 47, 108, 0.85) 0%, rgba(0, 86, 166, 0.35) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1;
    pointer-events: none;
}
.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    /* Imagen ligeramente atenuada que se aclara y hace zoom, como proyectos */
    filter: brightness(0.82);
    transition: transform 0.85s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.12);
    filter: brightness(1);
}

/* Aparición escalonada de las fotos (misma animación "reveal" que productos).
   Cada foto de la fila entra con un pequeño retraso, en cascada. */
.gallery-grid .gallery-item:nth-child(4n+1) { transition-delay: 0.05s; }
.gallery-grid .gallery-item:nth-child(4n+2) { transition-delay: 0.15s; }
.gallery-grid .gallery-item:nth-child(4n+3) { transition-delay: 0.25s; }
.gallery-grid .gallery-item:nth-child(4n)   { transition-delay: 0.35s; }


/* ====== LIGHTBOX (foto ampliada) ====== */
.lightbox {
    display: none;              /* oculto por defecto */
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.82);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.lightbox.active {
    display: flex;              /* visible al abrir */
}

/* La imagen ampliada: NO ocupa toda la pantalla, solo un poco más grande */
.lightbox img {
    max-width: 65vw;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    animation: lightboxZoom 0.35s ease;
}

/* Animación de zoom al abrir */
@keyframes lightboxZoom {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Botón de cerrar (la X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 32px;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover {
    color: #ff8f80;
    transform: scale(1.15);
}

/* En celulares se permite un poco más de ancho para que se vea bien */
@media (max-width: 600px) {
    .lightbox img {
        max-width: 90vw;
        max-height: 75vh;
    }
}


/* ====== SIMULADOR DE COLOR DE TECHO ====== */
.roof-visualizer {
    padding: 80px 0;
    background: var(--white);
}

/* Disposición: aviso a la izquierda + escenario centrado.
   Grid de 3 columnas (aviso | techo | vacío) para que la imagen
   quede centrada mientras la nota se mantiene a la izquierda. */
.roof-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

/* Aviso informativo (fines ilustrativos del color) */
.roof-note {
    justify-self: start;
    max-width: 300px;
    background: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 18px 22px;
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}
.roof-note strong {
    color: var(--dark-blue);
}
.roof-layout .roof-stage {
    margin: 0;
}

/* Escenario: la imagen del techo, centrada */
.roof-stage {
    position: relative;
    max-width: 310px;
    margin: 30px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    line-height: 0;
}
.roof-base {
    width: 100%;
    display: block;
}

/* Capa de "pintura": recortada con clip-path para cubrir SOLO el techo.
   mix-blend-mode: multiply conserva la textura de las láminas del techo.
   Los puntos del polígono siguen el contorno del techo curvo de la foto. */
.roof-paint {
    position: absolute;
    inset: 0;
    background: transparent;               /* GRIS = sin pintura */
    clip-path: polygon(0% 35%, 26% 33.9%, 33% 33.5%, 55% 32.6%, 66% 32.5%, 73% 32%, 79% 31.9%, 79.3% 32.5%, 78.9% 33%, 76.3% 34.8%, 73.8% 37.8%, 72.2% 40.1%, 70% 45.4%, 69.2% 46.5%, 0% 46.5%);
    mix-blend-mode: multiply;
    transition: background 0.4s ease;
    pointer-events: none;
}
.roof-paint.azul { background: #1e5fb0; }  /* AZUL */
.roof-paint.rojo { background: #c0392b; }  /* ROJO */
/* El BLANCO no puede usar "multiply" (no aclara); usa mezcla normal
   con blanco semitransparente para aclarar el techo conservando textura. */
.roof-paint.blanco {
    background: rgba(255, 255, 255, 0.78);
    mix-blend-mode: normal;
}

/* Botones de color */
.roof-options {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
.roof-btn {
    padding: 12px 30px;
    border: 2px solid #cfd6dd;
    background: var(--white);
    color: #555;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    transition: all 0.25s ease;
}
.roof-btn:hover {
    border-color: #9aa5af;
    transform: translateY(-2px);
}
.roof-btn.active {
    color: var(--white);
}
.roof-btn[data-color="gris"].active { background: #7f8c8d; border-color: #7f8c8d; }
.roof-btn[data-color="azul"].active { background: #1e5fb0; border-color: #1e5fb0; }
.roof-btn[data-color="rojo"].active { background: #c0392b; border-color: #c0392b; }
.roof-btn[data-color="blanco"].active { background: #ecf0f1; border-color: #bdc3c7; color: #333; }


/* ====== PRODUCTOS ====== */
.products {
    background-color: var(--white);
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 36px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    transform: translateY(0);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-14px);
    box-shadow: var(--box-shadow-hover);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), #3385ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-img {
    width: 100%;
    height: 230px;
    background-color: #eef3fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.07);
}

.product-content {
    padding: 28px 30px 32px;
}

.product-content h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    letter-spacing: 1.2px;
    color: var(--dark-blue);
}

.product-content p {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.4px;
    margin-bottom: 15px;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Características del producto */
.product-features {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-features ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}

.product-features li {
    display: flex;
    align-items: center;
    font-size: 0.87rem;
    color: var(--medium-gray);
    font-family: 'Rajdhani', sans-serif;
}

.product-features li i {
    color: var(--primary-blue);
    margin-right: 7px;
    font-size: 0.75rem;
    flex-shrink: 0;
}


/* ====== PROYECTOS ====== */
.projects-section {
    background: linear-gradient(160deg, #eef3fb 0%, var(--light-gray) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 390px;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.85s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.82);
}

.project-card:hover .project-img {
    transform: scale(1.12);
    filter: brightness(1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 28px;
    background: linear-gradient(to top, rgba(0, 20, 60, 0.97) 0%, rgba(0, 47, 108, 0.6) 60%, transparent 100%);
    color: var(--white);
    transform: translateY(15px);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.25rem;
    letter-spacing: 1.2px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    margin-bottom: 0;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.5;
}


/* ====== SOBRE NOSOTROS ====== */
.about {
    background: linear-gradient(160deg, #f4f6fb 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 166, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1.2px;
}

.about-text p {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.4px;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #00408a 100%);
    border-radius: var(--border-radius-lg);
    padding: 32px 28px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 2.8rem;
    color: var(--accent-red);
    margin-bottom: 6px;
    display: block;
    line-height: 1;
    letter-spacing: 1px;
}

.stat-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.about-img {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 47, 108, 0.22);
    transform: perspective(1000px) rotateY(-4deg);
    transition: var(--transition);
    height: 520px;
    position: relative;
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 47, 108, 0.35) 100%);
    pointer-events: none;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0);
}

.about-img:hover img {
    transform: scale(1.04);
}


/* ====== CONTACTO ====== */
.contact {
    background: linear-gradient(160deg, var(--light-gray) 0%, #eef3fb 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: var(--transition-fast);
    padding: 18px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    background: linear-gradient(135deg, var(--white), #f0f5ff);
    transform: translateX(8px);
    border-color: rgba(0, 86, 166, 0.2);
    box-shadow: 0 6px 20px rgba(0, 86, 166, 0.1);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(8deg);
    background: linear-gradient(135deg, var(--accent-red), #e05a4a);
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 1.3px;
}

.contact-details p {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.4px;
    color: var(--medium-gray);
    line-height: 1.5;
}

/* Botón WhatsApp directo */
.whatsapp-direct {
    margin-top: 15px;
    width: 100%;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

/* Redes sociales en sección contacto */
.social-contact-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.social-contact-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
    letter-spacing: 1.5px;
    font-family: 'Orbitron', sans-serif;
}

.social-contact-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.social-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 86, 166, 0.3);
}

.social-contact-link i {
    font-size: 1.2rem;
}

/* Colores hover por red social (contacto) */
.social-contact-link:nth-child(1):hover { background-color: #1877f2; }
.social-contact-link:nth-child(2):hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-contact-link:nth-child(3):hover { background-color: #25d366; }
.social-contact-link:nth-child(4):hover { background-color: #ff5722; }

/* Formulario de contacto */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 22px;
    border: 1.5px solid #dde4f0;
    border-radius: var(--border-radius);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--white);
    letter-spacing: 0.5px;
    color: var(--dark-gray);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 14px rgba(0, 86, 166, 0.13);
    background: #fafcff;
}

.contact-form textarea {
    height: 155px;
    resize: vertical;
}


/* ====== FOOTER ====== */
footer {
    background: linear-gradient(155deg, #001435 0%, var(--dark-blue) 60%, #0d3060 100%);
    color: var(--white);
    padding: 90px 0 35px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red), #ff5252);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1.5px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.footer-links a i {
    margin-right: 10px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-red);
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--accent-red);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--accent-red);
    width: 20px;
}

/* Iconos de redes sociales en footer */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.social-link i {
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Colores hover por red social (footer) */
.social-link:nth-child(1):hover { background-color: #1877f2; }
.social-link:nth-child(2):hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-link:nth-child(3):hover { background-color: #25d366; }
.social-link:nth-child(4):hover { background-color: #34b7f1; }
.social-link:nth-child(5):hover { background-color: #ff5722; }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}


/* ====== ANIMACIONES DE SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }


/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
    .hero h1           { font-size: 2.8rem; }
    .section-title h2  { font-size: 2.2rem; }
    .logo-img          { height: 55px; }
}

@media (max-width: 992px) {
    .desktop-nav       { display: none; }
    .mobile-menu-btn   { display: block; }
    .nav-links         { gap: 30px; }

    .hero {
        padding: 150px 0 100px;
        margin-top: 70px;
    }

    .hero h1          { font-size: 2.3rem; }
    .section-title h2 { font-size: 2rem; }
    .project-card     { height: 350px; }
    .logo-img         { height: 50px; }

    .social-contact-icons { gap: 12px; }
    .social-contact-link  { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .mobile-nav { width: 280px; padding: 90px 30px 30px; }

    .services-grid,
    .products-grid,
    .projects-grid { grid-template-columns: 1fr; gap: 30px; }

    /* El aviso y el techo se apilan y centran en pantallas pequeñas */
    .roof-layout { grid-template-columns: 1fr; justify-items: center; }
    .roof-note   { justify-self: center; }

    .about-stats      { flex-direction: column; align-items: center; gap: 30px; }
    .stat-item        { min-width: 100%; }

    .hero h1          { font-size: 2rem; }
    .section-title h2 { font-size: 1.6rem; }

    .hero {
        padding: 130px 0 80px;
        margin-top: 60px;
    }

    .axco-logo         { font-size: 0.9rem; }
    .axco-logo .subtitle { font-size: 0.7rem; }
    .logo-img          { height: 45px; }

    .social-icons      { gap: 12px; margin-top: 20px; }
    .social-link       { width: 40px; height: 40px; }
    .social-link i     { font-size: 1.1rem; }

    .social-contact-icons { gap: 12px; }
    .social-contact-link  { width: 40px; height: 40px; }
    .social-contact-link i { font-size: 1.1rem; }

    .btn-whatsapp      { padding: 12px 20px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .mobile-nav        { width: 100%; padding: 80px 20px 30px; }

    .hero h1           { font-size: 1.6rem; letter-spacing: 1px; }
    .logo-img          { height: 40px; }

    .axco-logo         { font-size: 0.8rem; padding-left: 3px; border-left: 1px solid var(--accent-red); }
    .axco-logo .subtitle { font-size: 0.65rem; }

    .btn               { padding: 12px 24px; font-size: 0.8rem; letter-spacing: 1px; }
    .product-content   { padding: 20px; }
    .project-card      { height: 300px; }

    .social-icons      { gap: 10px; }
    .social-link       { width: 36px; height: 36px; }
    .social-link i     { font-size: 1rem; }

    .social-contact-icons { gap: 10px; }
    .social-contact-link  { width: 36px; height: 36px; }
    .social-contact-link i { font-size: 1rem; }

    .btn-whatsapp      { padding: 10px 16px; font-size: 0.8rem; }
}
