/* ==========================================================================
   AVEGAS & ESTRUCTURAS - ESTILOS PRINCIPALES
   Sitio Web Multi-Página (MPA) Profesional
   Paleta: Fondo crema cálido, acentos sólidos en naranja de seguridad y carbón.
   Sin degradados en tipografías ni botones para un diseño 100% natural y humano.
   ========================================================================== */

/* 1. Reset y Control de Desbordamiento */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* 2. Variables de Diseño */
:root {
    /* Paleta Principal: Fondo crema cálido */
    --bg-cream: #faf7f2;
    --bg-cream-soft: #f2ece3;
    --bg-cream-alt: #eae3d7;
    --bg-white: #ffffff;

    /* Acentos Sólidos de Rubro (Gas, Seguridad y Obras) */
    --color-orange: #ea580c;
    --color-orange-hover: #c2410c;
    --color-orange-light: #fff7ed;
    --color-blue-gas: #0284c7;
    --color-success: #16a34a;
    --color-success-hover: #15803d;

    /* Contrastes Oscuros para Footer y Secciones Específicas */
    --bg-dark: #0b1323;
    --bg-dark-card: #141f36;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Textos */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --text-light-sub: #cbd5e1;

    /* Tipografía */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Sombras */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);

    /* Radios */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Transición */
    --transition: all 0.22s ease-in-out;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.25;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Contenedores y Layout */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-padding {
    padding-top: 65px;
    padding-bottom: 65px;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}

.section-header {
    margin-bottom: 45px;
}

.section-header.center {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-orange);
    background: var(--color-orange-light);
    border: 1px solid rgba(234, 88, 12, 0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.6rem;
    }
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* 4. Navbar y Menú Dropdown */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

/* Estado al hacer Scroll o cuando el menú móvil está abierto */
.header-main.scrolled,
.header-main.mobile-menu-open {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.logo-title span {
    color: var(--color-orange);
}

.header-main.scrolled .logo-title,
.header-main.mobile-menu-open .logo-title {
    color: #0f172a;
}

/* Lista del Menú */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    padding: 8px 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fb923c;
}

.header-main.scrolled .nav-link,
.header-main.mobile-menu-open .nav-link {
    color: var(--text-primary);
}

.header-main.scrolled .nav-link:hover,
.header-main.scrolled .nav-link.active,
.header-main.mobile-menu-open .nav-link:hover,
.header-main.mobile-menu-open .nav-link.active {
    color: var(--color-orange);
}

/* Menú Desplegable (Dropdown) */
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    min-width: 260px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1050;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-menu li a:hover {
    background: var(--color-orange-light);
    color: var(--color-orange);
    padding-left: 24px;
}

/* Hover para abrir en desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-item.dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.header-main.scrolled .menu-toggle span,
.header-main.mobile-menu-open .menu-toggle span {
    background-color: #0f172a;
}

/* 5. Botones Sólidos (Sin Degradés) */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}

.btn-whatsapp {
    background-color: var(--color-success);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.btn-call {
    background-color: #0f172a;
    color: #ffffff;
}

.btn-call:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #0f172a;
    color: #0f172a;
}

.btn-outline:hover {
    background: #0f172a;
    color: #ffffff;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #0f172a;
}

/* 6. Hero Section - Pantalla Completa (100vh) */
.hero-fullscreen {
    min-height: 100vh;
    position: relative;
    background-image: url('../assets/hero-bg-worker.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 110px 0 60px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 17, 34, 0.92) 0%, rgba(12, 28, 56, 0.88) 50%, rgba(14, 41, 75, 0.84) 100%);
    z-index: 1;
}

.hero-container-relative {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
}

.hero-tag-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffedd5;
    margin-bottom: 22px;
}

.hero-title-clean {
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-title-clean {
        font-size: 3.5rem;
    }
}

.hero-subtitle-clean {
    font-size: 1.15rem;
    color: #e2e8f0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 34px;
    line-height: 1.6;
}

.hero-ctas-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* 3 Badges Minimalistas (SVG Arriba + Texto Abajo, Sin Cajas Ni Marcos) */
.hero-badges-minimal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 28px;
}

.badge-item-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 140px;
}

.badge-icon-svg {
    width: 28px;
    height: 28px;
    color: #fb923c;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.badge-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.badge-sub {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* Badge de Reseñas Google */
.hero-reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

.hero-reviews-stars {
    color: #f59e0b;
    letter-spacing: 2px;
}

/* 7. Banner de Página Interna (Para Páginas Secundarias) */
.page-hero-banner {
    position: relative;
    background-image: url('../assets/canerias-estructuras.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 130px 0 65px;
    text-align: center;
    overflow: hidden;
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 17, 34, 0.90) 0%, rgba(12, 28, 56, 0.86) 50%, rgba(14, 41, 75, 0.82) 100%);
    z-index: 1;
}

.page-hero-banner .container {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 8. Tarjetas de Servicios Compactas */
.services-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.service-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.service-box-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.service-box-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-orange-light);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-box-title {
    font-size: 1.25rem;
    color: #0f172a;
    line-height: 1.2;
}

.service-box-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    flex-grow: 1;
    line-height: 1.55;
}

.service-box-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-box-link:hover {
    color: var(--color-orange-hover);
    gap: 10px;
}

/* 9. Sección Nosotros (Resumen en Home y Completa en nosotros.html) */
.about-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-split-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.about-img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 26px;
}

.value-card {
    background: #ffffff;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.value-card h4 {
    font-size: 1.05rem;
    color: var(--color-orange);
    margin-bottom: 6px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 10. Slider / Carrusel de Reseñas (Fondo Claro, 3 en PC, 1 en Mobile, Fotos Reales) */
.reviews-section-clean {
    background-color: var(--bg-cream-soft);
    position: relative;
}

.reviews-carousel-wrapper {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.reviews-carousel-container {
    overflow: hidden;
    padding: 10px 4px;
}

.reviews-track {
    display: flex;
    transition: transform 0.35s ease-in-out;
    gap: 24px;
}

.review-slide-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 calc((100% - 48px) / 3); /* 3 reseñas en PC */
    min-width: 0;
}

@media (max-width: 991px) {
    .review-slide-card {
        flex: 0 0 calc((100% - 24px) / 2); /* 2 en tablet */
    }
}

@media (max-width: 767px) {
    .review-slide-card {
        flex: 0 0 100%; /* 1 en móvil */
    }
}

.review-card-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-card-text {
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.55;
    font-style: italic;
    margin-bottom: 20px;
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 14px;
}

.review-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-orange);
    flex-shrink: 0;
}

.review-author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
}

.review-author-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Botones de Navegación del Carrusel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--color-orange);
    color: #ffffff;
    border-color: var(--color-orange);
}

/* 11. Sección Mapa y Contacto */
.map-responsive-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px solid #ffffff;
    height: 380px;
    width: 100%;
}

.map-responsive-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Formularios */
.contact-form-styled {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 34px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #1f2937;
    background: #ffffff;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* 12. Footer */
.footer-main {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-title {
    color: #ffffff;
}

.footer-heading {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
    height: 2px;
    background-color: var(--color-orange);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
}

/* 13. WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    background-color: var(--color-success-hover);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

/* 14. Responsive Mobile Nav */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 2px solid var(--color-orange);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 6px 0 6px 14px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: block;
    }

    .header-cta-btn {
        display: none !important;
    }

    .hero-badges-minimal {
        gap: 24px;
    }

    .nav-menu .nav-link {
        color: #1e293b !important;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--color-orange) !important;
    }

    .dropdown-menu li a {
        color: #475569 !important;
    }

    .dropdown-menu li a:hover {
        color: var(--color-orange) !important;
    }
}

/* 15. Sección "Nuestro Método Paso a Paso" */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.step-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-orange);
}

.step-number-badge {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-icon-indicator {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
}

.step-card-title {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.25;
}

.step-card-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* 16. Sección "Importancia de un Técnico Matriculado" */
.importance-wrapper {
    background: #0f172a;
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.importance-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    transition: var(--transition);
}

.importance-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-orange);
}

.importance-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.importance-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(234, 88, 12, 0.2);
    color: #fb923c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.importance-card-title {
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1.2;
}

.importance-card-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 0;
}

/* 17. Banner Intermedio Call to Action */
.cta-banner-strip {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 40px;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.25);
}

.cta-banner-text h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.cta-banner-text p {
    font-size: 0.98rem;
    color: #ffedd5;
    margin-bottom: 0;
}

.cta-banner-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* 18. Sección de Contacto en la Home */
.home-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 992px) {
    .home-contact-grid {
        grid-template-columns: 1.1fr 1.4fr;
        gap: 50px;
    }
}

.contact-direct-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.contact-direct-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-direct-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-orange-light);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-direct-item h5 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.contact-direct-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer Items Limpios sin Emojis */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon-svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}



/* --- UPDATES --- */

/* Mobile menu 50vh update */
@media (max-width: 991px) {
    .nav-menu.active {
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    .nav-menu.active .nav-item {
        text-align: center;
        margin: 10px 0;
    }
    .nav-menu.active .nav-link {
        font-size: 1.2rem;
        padding: 15px;
    }
    .hero-container-relative {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    .hero-fullscreen {
        padding-top: 80px;
    }
}

/* Background section for Paso a Paso */
.step-bg-section {
    position: relative;
    background-image: url('../assets/canerias-estructuras.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}
.step-overlay {
    background: linear-gradient(135deg, rgba(8, 17, 34, 0.95) 0%, rgba(12, 28, 56, 0.9) 100%);
}
.glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
.glass-card .step-card-title {
    color: #ffffff !important;
}
.glass-card .step-card-text {
    color: #e2e8f0 !important;
}

/* Floating WhatsApp hide state */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-success);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.whatsapp-float:hover {
    background-color: var(--color-success-hover);
    transform: translateY(-4px) scale(1.05);
}
.whatsapp-float.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}


/* --- TWEAKS MOBILE HERO --- */
@media (max-width: 767px) {
    .hero-title-clean {
        font-size: 2.1rem;
        margin-bottom: 12px;
    }
    .hero-subtitle-clean {
        font-size: 1.1rem;
        margin-bottom: 24px;
        line-height: 1.4;
    }
    .hero-ctas-center {
        margin-bottom: 25px;
    }
    .hero-badges-minimal {
        gap: 15px;
        padding-top: 15px;
        margin-bottom: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .badge-item-clean {
        min-width: 100px;
    }
    .badge-icon-svg {
        width: 20px;
        height: 20px;
    }
    .badge-label {
        font-size: 0.8rem;
    }
    .badge-sub {
        font-size: 0.7rem;
        display: none; /* Hide on mobile to save space */
    }
    .hero-reviews-summary {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    .hero-fullscreen {
        padding-top: 76px; 
        padding-bottom: 30px;
    }
}


/* === REFINEMENTS & USER SPECIFIC FIXES === */

/* Desktop Hero Vertical Centering & Larger CTA Buttons */
.hero-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    min-height: 100vh;
}

.btn-hero-lg {
    padding: 16px 32px !important;
    font-size: 1.05rem !important;
}

/* Nav Menu desktop text size */
.nav-link {
    font-size: 0.92rem;
}

/* 4-column process steps grid on desktop */
.process-steps-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .process-steps-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    text-align: left;
    align-items: flex-start;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
}

.step-card-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
    margin-bottom: 12px;
}

/* Step background overlay 100% fix */
.step-bg-section {
    position: relative;
    overflow: hidden;
    background-image: url('../assets/canerias-estructuras.jpg');
    background-size: cover;
    background-position: center;
}

.step-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 17, 34, 0.95) 0%, rgba(12, 28, 56, 0.92) 100%);
    z-index: 1;
    margin: 0;
    padding: 0;
}

/* Mobile Hero Optimizations */
.mobile-only-text {
    display: none;
}

@media (max-width: 767px) {
    .desktop-only-text {
        display: none;
    }
    .mobile-only-text {
        display: inline;
    }
    .hero-title-clean {
        font-size: 1.95rem;
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-subtitle-clean {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }
    .hero-reviews-summary {
        display: none !important; /* Hide Google rating badge on mobile per request */
    }
    .hero-badges-minimal {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 12px;
        margin-bottom: 20px;
        border-top: none;
    }
    .badge-item-clean {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: auto;
    }
    .badge-icon-svg {
        width: 18px;
        height: 18px;
    }
    .badge-label {
        font-size: 0.85rem;
    }
    .nav-menu.active .nav-link {
        font-size: 1.05rem;
        padding: 10px 14px;
    }
}
