/* --------------------------------------------------
   RESET Y BASE
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Enlaces por defecto: sin azul, sin subrayado */
a {
    color: inherit;
    text-decoration: none;
}


/* --------------------------------------------------
   HEADER COMPLETAMENTE TRANSPARENTE
-------------------------------------------------- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    padding: 20px 0;

    /* Fondo completamente transparente */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;

    opacity: 0;
    transform: translateY(-20px);
    animation: headerFade 1.2s ease forwards;
}

@keyframes headerFade {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* LOGO */
.logo {
    height: 78px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
    animation: logoFade 1.8s ease;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

@keyframes logoFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* MENÚ */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 500;
    padding-bottom: 4px;
    transition: color 0.25s ease, transform 0.25s ease;
    animation: menuFade 1.4s ease;
}

/* subrayado animado */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f9f871, #ffdd55);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.main-nav a:hover::after {
    width: 100%;
}

/* CONTACTO se comporta como enlace normal, solo leve énfasis */
.main-nav .nav-cta {
    padding: 0;
    border-radius: 0;
    border: none;
    letter-spacing: 0.16em;
}

.main-nav .nav-cta::after {
    display: block;
}

.main-nav .nav-cta:hover {
    background: transparent;
    color: #ffffff;
}

@keyframes menuFade {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* IMPORTANTE: como el header es absolute, main no lleva margen-top */
main {
    margin-top: 0;
}


/* --------------------------------------------------
   HERO PRINCIPAL
-------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.82)
        ),
        url('../img/hero-rauvadel.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.6);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 900px;
    padding-inline: 20px;

    opacity: 0;
    transform: translateY(18px);
    animation: heroFadeUp 1.3s ease forwards;
    animation-delay: 0.25s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
}

.hero-text {
    max-width: 720px;
    margin: 0 auto 2.3rem auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e2e2;
}

.hero-btn {
    display: inline-block;
    padding: 14px 50px;
    border-radius: 0;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.20em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #ffffff;
    color: #000000;
}

.hero-bottom-text {
    margin-top: 3.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #f0f0f0;
}

.hero-bottom-text::before {
    content: "";
    width: 260px;
    height: 1px;
    background: #ffffff;
    margin: 0 auto 10px auto;
    display: block;
}

/* --------------------------------------------------
   SECCIÓN EMPRESA / NOSOTROS — MÁS COMPACTA
-------------------------------------------------- */
.about-section {
    padding: 48px 0;
    background: #ffffff;
    color: #111827;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
}

.about-image {
    max-height: 360px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-content {
    max-width: 520px;
}

.about-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #137ec6;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.about-title {
    font-size: clamp(1.5rem, 2.1vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.about-text {
    font-size: 0.90rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 0.8rem;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.2rem;
}

.about-btn-primary,
.about-btn-outline {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.about-btn-primary {
    background: #137ec6;
    color: #ffffff;
}

.about-btn-primary:hover {
    background: #0f6aaa;
    transform: translateY(-1px);
}

.about-btn-outline {
    background: transparent;
    color: #137ec6;
    border-color: #137ec6;
}

.about-btn-outline:hover {
    background: #137ec6;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --------------------------------------------------
   HOME – SERVICIOS DESTACADOS
-------------------------------------------------- */
.home-services {
    padding: 70px 0 80px 0;
    background: #f3f4f6;
}

.home-services-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px auto;
}

.home-services-title {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.6rem;
}

.home-services-subtitle {
    font-size: 0.96rem;
    color: #6b7280;
    line-height: 1.7;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-service-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(209, 213, 219, 0.8);
}

.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border-color: rgba(19, 126, 198, 0.55);
}

.home-service-image {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.home-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-service-card:hover .home-service-image img {
    transform: scale(1.05);
}

.home-service-body {
    padding: 18px 20px 10px 20px;
    flex: 1;
}

.home-service-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
}

.home-service-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.home-service-footer {
    padding: 14px 20px 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.home-service-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #4b5563;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-service-link:hover {
    color: #111827;
    border-color: #111827;
}

.home-service-cta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 8px 14px;
    border-radius: 999px;
    background: #137ec6;
    color: #ffffff;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-service-cta:hover {
    background: #0f6aaa;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.home-services-all {
    margin-top: 32px;
    text-align: center;
}

.home-services-all-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #137ec6;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(19, 126, 198, 0.6);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-services-all-link:hover {
    color: #0f6aaa;
    border-color: #0f6aaa;
}

/* --------------------------------------------------
   HOME – PREGUNTAS FRECUENTES
-------------------------------------------------- */
.home-faq {
    padding: 70px 0 80px 0;
    background: #f3f4f6;
    color: #111827;
}

.home-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: flex-start;
}

.home-faq-content {
    max-width: 720px;
}

.home-faq-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #137ec6;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.home-faq-title {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.4rem;
}

.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-faq-item {
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15,23,42,0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-faq-item.is-open {
    border-color: rgba(19, 126, 198, 0.65);
    box-shadow: 0 16px 38px rgba(15,23,42,0.16);
    transform: translateY(-2px);
}

.home-faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

.home-faq-question {
    text-align: left;
    font-size: 0.96rem;
    font-weight: 600;
    color: #111827;
}

.home-faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
}

.home-faq-icon::before,
.home-faq-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-faq-icon::after {
    transform: rotate(90deg);
}

.home-faq-item.is-open .home-faq-icon::after {
    opacity: 0;
}

.home-faq-body {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding-bottom 0.2s ease;
}

.home-faq-item.is-open .home-faq-body {
    padding-bottom: 14px;
    max-height: 260px;
    opacity: 1;
}

.home-faq-body p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}

.home-faq-media {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.home-faq-photo {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(15,23,42,0.40);
    background: #111827;
    aspect-ratio: 3 / 4;
}

.home-faq-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.home-faq-media:hover .home-faq-photo img {
    transform: scale(1.07);
}

.home-faq-badge {
    position: absolute;
    bottom: -18px;
    left: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.55);
}

.home-faq-badge-number {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: #facc15;
}

.home-faq-badge-text {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ============================================================
   FOOTER RAUVADEL – PREMIUM DESIGN
============================================================ */
.footer-rauvadel {
    background: #0d0f12;
    padding: 60px 0 20px;
    color: #d4d7dc;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1450px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    width: 140px;
    margin-bottom: 18px;
}

.footer-desc {
    line-height: 1.6;
    color: #b8bbc1;
    font-size: 15px;
    max-width: 420px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #b8bbc1;
    transition: .25s ease;
}

.footer-col ul li a:hover {
    color: #1ba4ff;
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: #1a1d21;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    color: #d4d7dc;
    transition: .3s ease;
}

.social-icon:hover {
    background: #1ba4ff;
    color: #fff;
    transform: translateY(-3px);
}

.social-icon.whatsapp:hover {
    background: #25D366;
}

.footer-bottom {
    width: 90%;
    max-width: 1450px;
    margin: 40px auto 0 auto;
    padding-top: 18px;
    border-top: 1px solid #1a1d21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #7f838a;
}

.footer-bottom-right a {
    color: #1ba4ff;
    text-decoration: none;
    transition: .25s ease;
}

.footer-bottom-right a:hover {
    text-decoration: underline;
}

/* =============================================
   HERO CON IMAGEN – PÁGINA SERVICIOS - MEJORADO
============================================= */
.services-hero-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 15px 40px rgba(15,23,42,0.25);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.services-hero-banner .container {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.services-hero-title {
    font-size: clamp(2.3rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
    letter-spacing: -0.02em;
}

.services-hero-text {
    max-width: 680px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    font-weight: 400;
}

/* Botones del Hero de Servicios - MEJORADO */
.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.services-hero-btn-primary,
.services-hero-btn-outline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-radius: 50px;
    padding: 16px 36px;
    border: 2px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero-btn-primary {
    background: linear-gradient(135deg, #137ec6, #0f6aaa);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(19, 126, 198, 0.35);
}

.services-hero-btn-primary:hover {
    background: linear-gradient(135deg, #0f6aaa, #0d5a95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(19, 126, 198, 0.5);
}

.services-hero-btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.services-hero-btn-outline:hover {
    background: #ffffff;
    color: #137ec6;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

/* Efecto de brillo al hover */
.services-hero-btn-primary::before,
.services-hero-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.services-hero-btn-primary:hover::before,
.services-hero-btn-outline:hover::before {
    left: 100%;
}

/* Responsive */
/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 768px) {
    .main-header {
        padding: 16px 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .logo {
        height: 58px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 11px;
        letter-spacing: 0.10em;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.10em;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-btn {
        padding: 12px 36px;
        letter-spacing: 0.16em;
    }

    .hero-bottom-text {
        font-size: 0.78rem;
        letter-spacing: 0.18em;
    }

    .about-section {
        padding: 36px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-image {
        max-height: 260px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-title {
        font-size: 1.4rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-btn-primary,
    .about-btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Botones del hero en móvil */
    .services-hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .services-hero-btn-primary,
    .services-hero-btn-outline {
        width: 100%;
        max-width: 300px;
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    .services-hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .services-hero-text {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .home-faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-faq-media {
        max-width: 380px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }
}

@media (max-width: 768px) {
    .home-services {
        padding: 50px 0 60px 0;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-service-image {
        height: 180px;
    }

    .home-service-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-service-cta {
        width: 100%;
        text-align: center;
    }

    .home-faq {
        padding: 50px 0 60px 0;
    }

    .home-faq-media {
        max-width: 320px;
    }

    .home-faq-header {
        padding-inline: 14px;
    }

    .home-faq-body {
        padding-inline: 14px;
    }

    .home-faq-badge {
        bottom: -16px;
        left: 16px;
        padding: 8px 14px;
    }

    .home-faq-badge-number {
        font-size: 1.2rem;
    }

    .home-faq-badge-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 991.98px) {
    .services-hero-banner {
        padding: 90px 0 70px;
    }
}

@media (max-width: 767.98px) {
    .services-hero-banner {
        padding: 80px 0 60px;
    }
}