:root {
    --color-primary: #38338a;
    --color-text: #515150;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e9ecef;
    --font-headings: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

.bg-light {
    background-color: var(--color-light);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.text-center {
    text-align: center;
}

/* 2. COMPONENTES REUTILIZABLES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #2a266a;
    border-color: #2a266a;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-white);
}

.btn-tertiary {
    background-color: rgba(56, 51, 138, 0.1);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

.btn-tertiary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    color: var(--color-primary);
    line-height: 1.2;
    text-transform: uppercase;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 20px auto 0;
}

/* 3. NAVEGACIÓN (HEADER) */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.header-main.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    height: 70px;
}

.header-main nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-family: var(--font-headings);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-white);
    transition: color 0.4s ease;
}

.nav-logo:hover {
    opacity: 1;
}

.header-main.scrolled .nav-logo {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.4s ease;
}

.header-main.scrolled .nav-toggle {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-white);
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-main.scrolled .nav-link {
    color: var(--color-text);
}

.header-main.scrolled .nav-link:hover {
    color: var(--color-primary);
}

.header-main.scrolled .nav-link::after {
    background-color: var(--color-primary);
}

/* 4. MENÚ DESPLEGABLE (NUEVO) */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item-dropdown .nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 150%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
}

.dropdown-menu li a:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    opacity: 1;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.nav-item-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}


/* 5. SECCIONES DE PÁGINA */
.hero {
    height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.75;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-rating .stars {
    color: #FFC107;
    font-size: 1.1rem;
}

.hero-rating a {
    color: var(--color-white);
    font-weight: 600;
}

.hero-cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* Añade esta nueva regla justo debajo de la anterior */
.feature-item p {
    flex-grow: 1;
    /* Hace que el texto ocupe el espacio disponible */
    margin-bottom: 20px;
    /* Añade un espacio entre el texto y el botón */
}

.feature-item h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-card-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 1.4rem;
    font-family: var(--font-headings);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card-text {
    flex-grow: 1;
    margin-bottom: 25px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.review-quote {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.08;
    z-index: 1;
    line-height: 1;
}

.review-rating-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.review-stars {
    color: #ffc107;
    font-size: 1.1rem;
    line-height: 1;
}

.review-author {
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.review-text {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--color-text);
    font-style: italic;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.review-source {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.review-source i {
    color: #db4437;
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(56, 51, 138, 0.15);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-checkbox input {
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--color-primary);
}

.form-group-checkbox label {
    margin: 0;
    font-size: 14px;
}

#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    display: none;
    font-weight: 600;
    text-align: center;
}

.form-message-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.form-message-error {
    background-color: #f8d7da;
    color: #842029;
}

.contact-details h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 25px;
}

.contact-details ul li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-details ul i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 5px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 30px;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

.footer-main {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col-main p {
    max-width: 350px;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--color-white);
    font-size: 1.5rem;
}

.footer-col h4 {
    font-family: var(--font-headings);
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 6. PÁGINAS ESPECÍFICAS (LEGAL, BLOG, POST) */
.page-section {
    padding: calc(var(--header-height) + 60px) 0 80px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.legal-page p,
.legal-page ul {
    margin-bottom: 1.5rem;
}

.legal-page ul {
    padding-left: 20px;
    list-style: disc;
}

.btn-back {
    margin-top: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    display: block;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.blog-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-date {
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 10px 0 15px;
    line-height: 1.3;
    text-transform: uppercase;
}

.blog-card-excerpt {
    color: var(--color-text);
    font-size: 15px;
    margin-bottom: 20px;
}

.btn-read-more {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .btn-read-more i {
    transform: translateX(5px);
}

.post-page {
    padding-bottom: 80px;
}

.post-header {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    margin-top: var(--header-height);
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(56, 51, 138, 0.6);
}

.post-header .container {
    position: relative;
    z-index: 2;
}

.post-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.post-date {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 15px;
    margin-top: 20px;
    display: inline-block;
}

.post-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    margin: 40px 0 20px;
    text-transform: uppercase;
}

/* 7. ANIMACIONES Y UTILIDADES */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 51, 138, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(56, 51, 138, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 51, 138, 0);
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation-play-state: paused;
    color: var(--color-white);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 8. RESPONSIVIDAD (MEDIA QUERIES) */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        padding-top: 60px;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        color: var(--color-white);
        font-size: 1.2rem;
    }

    .header-main.scrolled .nav-link {
        color: var(--color-white);
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    /* --- OPTIMIZACIÓN DEL DROPDOWN EN MÓVIL --- */
    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding: 10px 0 0;
        text-align: center;
        min-width: auto;
    }

    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
        padding: 8px 15px;
    }

    .dropdown-menu li a:hover {
        color: var(--color-white);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-item-dropdown:hover .dropdown-menu {
        top: auto;
    }

    .nav-item-dropdown .nav-link i {
        display: none;
    }

    /* Ocultar flecha */

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-col-main p {
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }

    .nav-toggle .bi-x {
        display: none;
    }

    .nav-toggle.active .bi-list {
        display: none;
    }

    .nav-toggle.active .bi-x {
        display: block;
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
    }

    .hero {
        height: 90vh;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    /* --- ARREGLO PARA RESEÑAS EN HERO MÓVIL --- */
    .hero-rating {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .features-grid,
    .services-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .summer-banner p {
        padding-right: 35px;
    }

    .brand-slider-wrapper {
        padding: 0;
    }

    .brand-slider-prev,
    .brand-slider-next {
        display: none;
    }
}


/* 9. SECCIONES ESPECIALES (MARCAS, PARTNERS, BANNER) */
.brand-slider-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 0 60px;
}

.brand-slider {
    padding: 20px 0;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.brand-slider .swiper-slide img {
    max-height: 45px;
    width: auto;
    max-width: 100px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.brand-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.brand-logo-container:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-slider-prev,
.brand-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--color-primary);
    transition: var(--transition);
    border: 1.5px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
}

.brand-slider-prev {
    left: 0;
}

.brand-slider-next {
    right: 0;
}

.brand-slider-prev:hover,
.brand-slider-next:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.brand-slider-prev::after,
.brand-slider-next::after {
    font-family: 'bootstrap-icons';
    font-size: 1.2rem;
    font-weight: bold !important;
}

.brand-slider-prev::after {
    content: '\F1C8';
}

.brand-slider-next::after {
    content: '\F128';
}

#partners {
    background-color: var(--color-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
}

.partner-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.partner-card-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.partner-card-logo img {
    max-height: 100%;
    width: auto;
    max-width: 180px;
}

.partner-card p {
    flex-grow: 1;
    margin-bottom: 30px;
    max-width: 320px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.summer-banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 0;
    font-size: 15px;
    position: relative;
    z-index: 1001;
    transition: transform 0.5s ease, opacity 0.5s ease, padding 0.5s ease, border 0.5s ease;
}

.summer-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    padding: 0;
    border: none;
    position: absolute;
}

.summer-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
}

.summer-banner p {
    margin: 0;
    font-weight: 500;
}

.summer-banner p i {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

.summer-banner p strong {
    text-transform: uppercase;
}

.close-banner {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.close-banner:hover {
    opacity: 1;
}

/* 10. HERO CON IMAGEN ESTÁTICA (NUEVO) */
.hero-bg-image {
    background-image: url('https://images.unsplash.com/photo-1598435893325-1868351b0f2a?q=80&w=2070&auto=format&fit=crop');
    /* Imagen por defecto */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

#hero-video {
    /* Estilo para ocultar el vídeo si aún existe en el HTML */
    display: none;
}

/* ===================================================================
   12. CABECERA DE PÁGINAS DE SERVICIO CON FONDO
   =================================================================== */

.service-header-bg {
    position: relative;
    /* Necesario para la capa de superposición */
    background-size: cover;
    background-position: center center;
    padding: 120px 0;
    /* Aumentamos el espaciado para que se vea mejor */
    z-index: 1;
}

/* Capa de color semi-transparente que va sobre la imagen */
.service-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    /* Usa el color principal de tu marca */
    opacity: 0.85;
    /* Ajusta este valor (0.8 = 80%) para que la imagen sea más o menos visible */
    z-index: -1;
    /* Se coloca detrás del contenido */
}

/* Cambiamos el color del texto para que sea legible sobre el fondo oscuro */
.service-header-bg .section-tag,
.service-header-bg .section-title,
.service-header-bg p {
    color: var(--color-white);
}

.service-header-bg .section-header .section-title::after {
    background-color: var(--color-white);
    /* La línea bajo el título también será blanca */
}

/* ===================================================================
   13. MEJORAS EN LA SECCIÓN DE CONTACTO PARA EMPRESAS
   =================================================================== */

.contact-details h3 {
    margin-bottom: 1.5rem;
    /* Ajuste de espacio */
}

.contact-details .value-prop {
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-primary);
    margin: 2rem 0;
}

.company-logos-wrapper {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.company-logos-wrapper img {
    max-height: 45px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    margin: 0 15px 15px 0;
}