/* Fonts and Base Styles */
:root {
    --primary-color: #2986cc;
    --secondary-color: #003366;
    --accent-color: #ff6b00;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #3aa5f8);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 134, 204, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 134, 204, 0.4);
    color: white;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3aa5f8, var(--secondary-color));
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover:before {
    left: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-header .underline {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.section-header .underline:before,
.section-header .underline:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 4px;
    background: var(--primary-color);
    top: 0;
}

.section-header .underline:before {
    left: -10px;
}

.section-header .underline:after {
    right: -10px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    max-width: 150px;
}

.logo {
    max-height: 60px;
    transition: all 0.3s ease;
}

header.scrolled .logo {
    max-height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(165deg, #f1f9ff 0%, #e3f2ff 50%, #d5ebff 100%);
    overflow: hidden;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/portada.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    animation: subtle-zoom 30s infinite alternate;
    filter: blur(3px);
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.main-heading {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    display: flex;
    flex-direction: column;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.05);
}

.main-heading .adquiere {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 5px;
    animation: fadeInUp 0.8s ease forwards;
}

.main-heading .auto {
    font-size: 76px;
    color: var(--primary-color);
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s 0.2s ease forwards;
}

.main-heading .auto:after {
    content: '';
    position: absolute;
    width: 40%;
    height: 8px;
    background-color: var(--accent-color);
    bottom: 15px;
    right: 5px;
    z-index: -1;
    animation: expandWidth 1s 0.6s ease forwards;
}

.main-heading .con-nosotros {
    font-size: 34px;
    color: var(--secondary-color);
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 40%;
    }
}

.tagline {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-color);
    margin-bottom: 30px;
    font-weight: 500;
    animation: fadeIn 1s 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    animation: fadeIn 1s 1s ease forwards;
    opacity: 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--primary-color);
    font-size: 18px;
}

.feature span {
    font-size: 14px;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeIn 1s 1.2s ease forwards;
    opacity: 0;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(41, 134, 204, 0.1);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 134, 204, 0.3);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    animation: floatImage 4s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transform: scale(1.1);
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px) scale(1.1);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1.1);
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.floating-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: rgba(41, 134, 204, 0.05);
    border-radius: 50%;
    animation: float 12s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 21s;
}

.bubble:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation-delay: 5s;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-60px) rotate(8deg);
    }
}

/* Por qué elegirnos Section */
.por-que-elegirnos {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.por-que-elegirnos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(41, 134, 204, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    z-index: 0;
}

/* Agregamos un texto destacado al inicio de la sección */
.elegirnos-destacado {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    border-left: 5px solid var(--primary-color);
}

.elegirnos-destacado p {
    font-size: 20px;
    line-height: 1.7;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

.por-que-elegirnos:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(41, 134, 204, 0.1);
    top: -50px;
    left: -50px;
    z-index: 0;
}

.por-que-elegirnos:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(41, 134, 204, 0.08);
    bottom: -30px;
    right: -30px;
    z-index: 0;
}

.por-que-elegirnos .container {
    position: relative;
    z-index: 1;
}

.elegirnos-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Cambiado de center a flex-start para alinear desde arriba */
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-bottom: 30px; /* Reducido de 60px a 30px */
}

.elegirnos-image {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
    margin-top: 0;
    align-self: flex-start;
    max-width: 100%;
    height: auto;
}

.elegirnos-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.elegirnos-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 10px; /* Asegura que la imagen tenga bordes redondeados */
    object-fit: cover; /* Garantiza que la imagen cubra bien el espacio */
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), transparent);
    padding: 30px 20px 20px;
    color: white;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

/* Ajuste adicional para la sección de contenido para mantener la coherencia */
.elegirnos-content {
    flex: 1;
    padding: 20px;
    align-self: flex-start;
    margin-top: 0; /* Elimina cualquier margen superior */
}

.elegirnos-intro h3 {
    margin-top: 0; /* Elimina el margen superior del título */
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.elegirnos-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.elegirnos-intro .destacado {
    font-size: 18px;
    font-weight: 600;
    color: var (--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 25px 0;
    line-height: 1.6;
    background-color: rgba(41, 134, 204, 0.05);
    padding: 15px 15px 15px 20px;
    border-radius: 0 5px 5px 0;
}

.beneficios-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
    margin-top: 50px;
    width: 100%;
    margin-bottom: 50px;
}

.beneficio-card {
    background: white;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.beneficio-card .icon {
    font-size: 38px;
    color: white;
    margin-bottom: 30px;
    background: #2986cc;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(41, 134, 204, 0.3);
    transition: all 0.3s ease;
}

.beneficio-card:hover .icon {
    transform: scale(1.05);
}

.beneficio-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #003366;
    position: relative;
}

.beneficio-card h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #2986cc;
}

.beneficio-card p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.7;
    padding: 0 15px;
    margin-top: 15px;
}

/* Estilo para los testimonios */
.testimonios {
    margin-top: 30px; /* Reducido de 70px a 30px para disminuir el espacio */
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonios h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px; /* Reducido de 40px a 30px */
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.testimonios-slider {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonio {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    max-width: 350px;
    position: relative;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.testimonio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.testimonio::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 80px;
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(41, 134, 204, 0.1);
}

.testimonio-content p {
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.testimonio-autor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.testimonio-autor .nombre {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary-color);
}

.estrellas {
    color: #ffc107;
}

/* Responsive styles for Por qué elegirnos section */
@media (max-width: 992px) {
    .elegirnos-wrapper {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .elegirnos-image, 
    .elegirnos-content {
        flex: 1 0 100%;
    }
    
    .elegirnos-image {
        max-width: 600px;
        margin: 0 auto 40px;
    }
    
    .beneficios-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .beneficio-card {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 20px;
    }
    
    .testimonios {
        margin-top: 20px; /* Aún menos espacio en pantallas más pequeñas */
    }
    
    .testimonios-slider {
        flex-wrap: wrap;
    }
    
    .testimonio {
        flex: 0 0 calc(50% - 30px);
        margin-bottom: 30px;
    }
    
    .elegirnos-destacado {
        padding: 25px;
    }
    
    .elegirnos-destacado p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .beneficios-grid {
        flex-direction: column;
    }
    
    .beneficio-card {
        flex: 0 0 100%;
    }
    
    .testimonio {
        flex: 0 0 calc(100% - 30px);
    }
    
    .elegirnos-destacado {
        padding: 20px;
    }
    
    .elegirnos-destacado p {
        font-size: 16px;
    }
}

/* Testimonios Section */
.testimonios {
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonios h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.testimonios-slider {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.testimonio {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    position: relative;
}

.testimonio::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 60px;
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(41, 134, 204, 0.1);
}

.testimonio-content p {
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
    color: var(--dark-color);
}

.testimonio-autor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.testimonio-autor .nombre {
    font-weight: 700;
    font-size: 16px;
    color: var(--secondary-color);
}

.estrellas {
    color: #ffc107;
}

/* Responsive styles for Por qué elegirnos section */
@media (max-width: 992px) {
    .elegirnos-wrapper {
        flex-direction: column;
    }
    
    .elegirnos-image, 
    .elegirnos-content {
        flex: 1 0 100%;
    }
    
    .elegirnos-image {
        max-width: 600px;
        margin: 0 auto 40px;
    }
    
    .beneficio-card {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .beneficio-card {
        flex: 0 0 calc(100% - 30px);
    }
    
    .testimonio {
        flex: 0 0 calc(100% - 30px);
    }
}

/* Nosotros Section - Corrección para texto visible */
.nosotros {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nosotros-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.nosotros-text {
    flex: 0 0 55%;
    padding-right: 40px;
}

.nosotros-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-color);
    opacity: 1 !important; /* Forzar que el texto sea visible */
    transform: none !important; /* Eliminar cualquier transformación que oculte el texto */
}

.nosotros-text .highlight-p {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
    opacity: 1 !important; /* Asegurar que el texto destacado sea visible */
    transform: none !important;
}

.animate, .highlight-p.animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
}

.nosotros-image {
    flex: 0 0 40%;
    position: relative;
    z-index: 2;
}

.nosotros-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 7px solid white;
    display: block;
    width: 100%;
    height: auto;
}

.valores-section {
    margin-top: 80px;
    padding-top: 60px;
    background: #f5f9fc;
    position: relative;
    padding-bottom: 80px;
    z-index: 2;
}

.valores-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.valor {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    text-align: center;
}

@media (max-width: 991px) {
    .nosotros-grid {
        flex-direction: column;
    }
    
    .nosotros-text, .nosotros-image {
        flex: 0 0 100%;
        padding-right: 0;
    }
    
    .nosotros-text {
        margin-bottom: 40px;
        order: 2;
    }
    
    .nosotros-image {
        order: 1;
        margin-bottom: 30px;
        max-width: 500px;
        margin: 0 auto 40px;
    }
    
    .valor {
        flex: 0 0 calc(50% - 30px);
    }
}

/* Contacto Section */
.contacto {
    padding: 100px 0;
    background: linear-gradient(0deg, #fff, #f5f9fc);
    position: relative;
}

.contacto-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.contacto-info {
    flex: 0 0 calc(50% - 30px);
    margin: 0 15px;
}

.contacto-form {
    flex: 0 0 calc(50% - 30px);
    margin: 0 15px;
}

.contacto h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    flex: 0 0 50px;
    height: 50px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(41, 134, 204, 0.3);
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    color: var(--gray-color);
}

.mapa {
    margin-top: 40px;
}

.mapa iframe {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.form-group textarea {
    border-radius: 20px;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 134, 204, 0.2);
}

.social-links {
    margin-top: 40px;
}

.social-icons {
    display: flex;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    background: var(--primary-color);
    box-shadow: 0 10px 20px rgba(41, 134, 204, 0.3);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 12px;
    background: #25d366;
    border-radius: 50px;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
}

.whatsapp-float a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 28px;
    margin-right: 8px;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 14px;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(41, 134, 204, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: 0.3s;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.3);
}

/* Footer */
footer {
    padding: 60px 0 0;
    background: linear-gradient(to right, #001b33, #003366);
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 40px;
}

.footer-company {
    flex: 0 0 calc(33.33% - 30px);
    margin: 0 15px 30px;
}

.footer-links {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
}

.footer-contact {
    flex: 0 0 calc(41.66% - 30px);
    margin: 0 15px 30px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

footer h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
    position: relative;
}

footer h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

footer p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: 0.3s;
    display: block;
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content, .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .main-heading .auto {
        font-size: 80px;
    }
    
    .beneficio-card {
        flex: 0 0 calc(50% - 30px);
    }
    
    .valor {
        flex: 0 0 calc(50% - 30px);
    }
    
    .contacto-info, .contacto-form {
        flex: 0 0 calc(100% - 30px);
    }
    
    .contacto-info {
        margin-bottom: 40px;
    }
    
    .footer-company, .footer-links, .footer-contact {
        flex: 0 0 calc(100% - 30px);
    }
}

@media (max-width: 767px) {
    header nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .main-heading {
        font-size: 36px;
    }
    
    .main-heading .auto {
        font-size: 60px;
    }
    
    .main-heading .con-nosotros {
        font-size: 30px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .beneficio-card, .valor, .testimonio {
        flex: 0 0 calc(100% - 30px);
    }
    
    .nosotros-text, .nosotros-image {
        flex: 0 0 100%;
        padding-right: 0;
    }
    
    .nosotros-text {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .main-heading .auto {
        font-size: 50px;
    }
    
    .main-heading .con-nosotros {
        font-size: 24px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float a {
        padding: 12px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .elegirnos-wrapper {
        flex-direction: column;
    }
    
    .elegirnos-image, 
    .elegirnos-content {
        flex: 1 0 100%;
    }
    
    .elegirnos-image {
        max-width: 600px;
        margin: 0 auto 40px;
    }
    
    .beneficio-card {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .beneficio-card {
        flex: 0 0 calc(100% - 30px);
    }
    
    .testimonio {
        flex: 0 0 calc(100% - 30px);
    }
}

/* Nuevo diseño para la sección "¿Por Qué Elegirnos?" */
.porque-elegirnos-nuevo {
    padding: 100px 0;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.porque-elegirnos-nuevo::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 134, 204, 0.1) 0%, rgba(41, 134, 204, 0.05) 50%, rgba(41, 134, 204, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.porque-elegirnos-nuevo::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 134, 204, 0.1) 0%, rgba(41, 134, 204, 0.05) 50%, rgba(41, 134, 204, 0) 70%);
    bottom: -150px;
    left: -150px;
    z-index: 0;
}

.porque-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.porque-intro p {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Estilos para las tarjetas de ventajas */
.ventajas-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.ventaja-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 0;
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ventaja-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ventaja-icon {
    background: linear-gradient(135deg, #2986cc, #003366);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-width: 120px;
}

.ventaja-icon i {
    font-size: 40px;
    color: white;
}

.ventaja-content {
    padding: 30px 40px;
    flex: 1;
}

.ventaja-content h3 {
    color: var(--secondary-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ventaja-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.ventaja-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ventaja-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.ventaja-link:hover {
    color: var(--secondary-color);
}

.ventaja-link:hover i {
    transform: translateX(5px);
}

/* Estilos para estadísticas */
.estadisticas-container {
    background-color: #003366;
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 70px;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.2);
    position: relative;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232986cc' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.estadistica-item {
    text-align: center;
    color: white;
}

.contador {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.estadistica-item p {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 500;
}

/* Testimonio destacado */
.testimonio-destacado {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.testimonio-imagen {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.testimonio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.testimonio-destacado:hover .testimonio-imagen img {
    transform: scale(1.05);
}

.testimonio-texto {
    flex: 0 0 60%;
    padding: 40px;
    position: relative;
}

.comillas {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 40px;
    color: rgba(41, 134, 204, 0.1);
}

.testimonio-texto p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
    padding-left: 20px;
}

.testimonio-autor {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.testimonio-autor strong {
    font-size: 18px;
    color: var(--secondary-color);
}

.testimonio-autor span {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #2986cc, #003366);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.2);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -1;
}

.cta-banner h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-banner .btn {
    padding: 15px 35px;
    font-size: 16px;
}

/* Estilos responsive para la nueva sección */
@media (max-width: 991px) {
    .estadisticas-container {
        flex-wrap: wrap;
    }
    
    .estadistica-item {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
    
    .testimonio-destacado {
        flex-direction: column;
    }
    
    .testimonio-imagen {
        flex: 0 0 100%;
        height: 300px;
    }
    
    .testimonio-texto {
        flex: 0 0 100%;
    }
    
    .cta-banner {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .estadistica-item {
        flex: 0 0 100%;
    }
    
    .ventaja-card {
        flex-direction: column;
    }
    
    .ventaja-icon {
        padding: 25px;
        min-width: 100%;
    }
    
    .cta-banner h3 {
        font-size: 24px;
    }
}