/* --- ESTILOS GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    cursor: none !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- CURSOR PERSONALIZADO --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 32px;
    height: 32px;
    background: url('/img/puntero.gif') no-repeat center center;
    background-size: contain;
    background-color: transparent;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Media queries para manejar dispositivos con y sin mouse */
@media (hover: hover) and (pointer: fine) {
    /* Solo en dispositivos con mouse (escritorio) */
    * {
        cursor: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    /* En dispositivos táctiles (móviles/tablets) */
    * {
        cursor: auto !important;
    }
    
    .custom-cursor {
        display: none !important;
    }
}

/* --- ENCABEZADO --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* --- LOGO CLICKEABLE --- */
.logo {
    cursor: pointer;
}

.logo img {
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Menú con texto abreviado y tooltips */
nav ul {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 4px 15px rgba(40, 81, 148, 0.1);
    border: 1px solid rgba(40, 81, 148, 0.1);
}

nav ul li a {
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
}

nav ul li a span.full-text {
    display: none;
}

nav ul li a span.short-text {
    font-size: 0.70rem;
    font-weight: 700;
    color: #285194;
    margin-top: 5px;
}

nav ul li a i {
    font-size: 1.2rem;
    color: #285194;
}

/* Tooltip para mostrar texto completo */
nav ul li a::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #285194;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 10px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #285194;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

nav ul li a:hover::before,
nav ul li a:hover::after {
    opacity: 1;
    visibility: visible;
}

/* En pantallas grandes, mostrar texto completo */
@media (min-width: 1200px) {
    nav ul li a span.full-text {
        display: block;
        font-size: 0.95rem;
        font-weight: 700;
        color: #285194;
    }
    
    nav ul li a span.short-text {
        display: none;
    }
    
    nav ul li a {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 12px 15px;
    }
    
    nav ul li a::before {
        display: none;
    }
}

/* --- ICONOS SOCIALES EN EL HEADER --- */
.header-social {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-social a {
    display: inline-block;
    margin-left: 15px;
    color: #285194;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.header-social a:hover {
    transform: translateY(-2px);
    color: #1a3563;
}

/* --- BOTONES FLOTANTES --- */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-float, .brochure-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float {
    background-color: #25D366;
    color: white;
}

.brochure-float {
    background-color: #285194;
    color: white;
}

.whatsapp-float:hover, .brochure-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float i, .brochure-float i {
    font-size: 1.8rem;
}

/* Tooltip para los botones flotantes */
.floating-buttons a {
    position: relative;
}

.floating-buttons a::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-buttons a:hover::before {
    opacity: 1;
    visibility: visible;
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: #285194;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a6bc5;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* --- ESTILOS COMUNES PARA PÁGINAS --- */

/* Encabezado de página */
.page-header {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Botones comunes */
.btn-primary {
    background: white;
    color: #285194;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    display: inline-block;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: #285194;
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* --- ESTILOS PARA PÁGINA DE CONTACTO --- */

/* Sección principal de contacto */
.contact-main-section {
    padding: 60px 0;
}

.contact-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Tarjeta de información de contacto */
.contact-info-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.contact-info-card h2 {
    color: #285194;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.contact-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Items de información de contacto */
.contact-details {
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.contact-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    background: #285194;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-text h3 {
    color: #285194;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-text p {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Redes sociales en contacto */
.social-contact h3 {
    color: #285194;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-contact-links {
    display: flex;
    gap: 10px;
}

.social-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #285194;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-contact-link:hover {
    background: #1a3563;
    transform: translateY(-2px);
}

/* Tarjeta de formulario */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.contact-form-card h2 {
    color: #285194;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.form-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Estilos del formulario elegante */
.elegant-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.elegant-form .form-group {
    margin-bottom: 20px;
}

.elegant-form .form-group.half {
    margin-bottom: 0;
}

.elegant-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.elegant-form input,
.elegant-form select,
.elegant-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.elegant-form input:focus,
.elegant-form select:focus,
.elegant-form textarea:focus {
    outline: none;
    border-color: #285194;
    box-shadow: 0 0 0 3px rgba(40, 81, 148, 0.1);
}

.elegant-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón de enviar */
.form-submit {
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 81, 148, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Sección del mapa */
.map-section {
    margin-top: 40px;
}

.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header h2 {
    color: #285194;
    font-size: 2rem;
    margin-bottom: 10px;
}

.map-header p {
    color: #666;
    font-size: 1.1rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* --- ESTILOS PARA PÁGINA QUIÉNES SOMOS --- */

/* Sección de introducción */
.about-intro {
    padding: 80px 0;
}

.about-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-large:hover .responsive-image {
    transform: scale(1.05);
}

.about-text-content h2 {
    color: #285194;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.lead-text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 600;
}

.about-text-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #285194;
    font-weight: 600;
}

.feature-item i {
    background: #285194;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sección Misión y Visión */
.mission-vision-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.mv-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.mv-card h3 {
    color: #285194;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mv-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Sección de Valores */
.values-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #285194;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: #285194;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.value-item h4 {
    color: #285194;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.value-item p {
    color: #666;
    line-height: 1.6;
}

/* Sección Equipo y Tecnología */
.team-tech-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-tech-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-tech-content h2 {
    color: #285194;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.team-tech-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #285194;
    font-weight: 600;
    font-size: 1.1rem;
}

.tech-feature i {
    color: #25D366;
    font-size: 1.3rem;
}

.tech-image-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Sección de Compromiso */
.commitment-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    text-align: center;
}

.commitment-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.commitment-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.commitment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- ESTILOS PARA PÁGINA PRODUCTOS --- */

/* Sección principal de productos */
.products-main-section {
    padding: 60px 0;
}

.product-item {
    margin-bottom: 100px;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-two-columns.reverse {
    direction: rtl;
}

.product-two-columns.reverse > * {
    direction: ltr;
}

/* Columna de imagen */
.product-image-column {
    position: relative;
}

.product-image-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-image-large:hover {
    transform: translateY(-5px);
}

.product-image-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-large:hover img {
    transform: scale(1.05);
}

/* Columna de contenido */
.product-text-content h2 {
    color: #285194;
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    background: #e8f0fe;
    color: #285194;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #285194;
}

.product-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.5;
}

.product-specs i {
    color: #25D366;
    margin-top: 3px;
    flex-shrink: 0;
}

.product-cta {
    margin-top: 30px;
}

.btn-product {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 81, 148, 0.3);
}

/* Sección CTA productos */
.products-cta-section {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* --- ESTILOS PARA PÁGINA SERVICIOS --- */

/* Sección principal de servicios */
.services-main-section {
    padding: 60px 0;
}

.service-item {
    margin-bottom: 100px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-two-columns.reverse {
    direction: rtl;
}

.service-two-columns.reverse > * {
    direction: ltr;
}

/* Columna de imagen */
.service-image-column {
    position: relative;
}

.service-image-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-image-large:hover {
    transform: translateY(-5px);
}

.service-image-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image-large:hover img {
    transform: scale(1.05);
}

/* Columna de contenido */
.service-text-content h2 {
    color: #285194;
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.service-specs {
    margin-bottom: 30px;
}

.service-specs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.5;
}

.service-specs i {
    color: #25D366;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-cta {
    margin-top: 30px;
}

.btn-service {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 81, 148, 0.3);
}

/* Sección de proceso de trabajo */
.work-process-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: #285194;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

/* Sección CTA servicios */
.services-cta-section {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* --- ESTILOS PARA PÁGINA TRABAJOS REALIZADOS --- */

/* Filtros de galería */
.gallery-filters {
    padding: 40px 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: white;
    color: #285194;
    padding: 12px 24px;
    border: 2px solid #285194;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #285194;
    color: white;
    transform: translateY(-2px);
}

/* Sección principal de galería */
.gallery-main-section {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 81, 148, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-btn {
    background: white;
    color: #285194;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.zoom-btn:hover {
    transform: scale(1.1);
    background: #285194;
    color: white;
}

.gallery-info {
    padding: 25px;
}

.gallery-info h3 {
    color: #285194;
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.gallery-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.project-category {
    background: #e8f0fe;
    color: #285194;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-date {
    color: #999;
    font-size: 0.9rem;
}

/* Modal para vista ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

#modalImage {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.modal-info {
    padding: 25px;
}

.modal-info h3 {
    color: #285194;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Sección CTA galería */
.gallery-cta-section {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* --- ESTILOS RESPONSIVOS ACTUALIZADOS --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 8px 0;
    }

    .header-social {
        margin-left: 0;
        margin-top: 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        padding-right: 0;
        text-align: center;
    }

    /* Botones flotantes más pequeños en móvil */
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float, .brochure-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i, .brochure-float i {
        font-size: 1.5rem;
    }

    /* Responsive para páginas comunes */
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-main-section,
    .products-main-section,
    .services-main-section,
    .gallery-main-section {
        padding: 40px 0;
    }
    
    .contact-two-columns,
    .about-two-columns,
    .product-two-columns,
    .service-two-columns,
    .mv-two-columns,
    .team-tech-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }
    
    .elegant-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .elegant-form .form-group.half {
        margin-bottom: 20px;
    }
    
    .contact-detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Responsive para Quiénes Somos */
    .about-intro,
    .mission-vision-section,
    .values-section,
    .team-tech-section,
    .commitment-section {
        padding: 40px 0;
    }
    
    .mv-card {
        padding: 30px 25px;
    }
    
    .value-item {
        padding: 30px 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .commitment-content h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Responsive para Productos y Servicios */
    .product-item,
    .service-item {
        margin-bottom: 60px;
    }
    
    .product-text-content h2,
    .service-text-content h2 {
        font-size: 1.8rem;
    }
    
    .product-image-large img,
    .service-image-large img {
        height: 300px;
    }
    
    .products-cta-section,
    .services-cta-section,
    .gallery-cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Responsive para Galería */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery-image-container {
        height: 250px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-info {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #modalImage {
        height: 300px;
    }
    
    .work-process-section {
        padding: 60px 0;
    }
    
    .process-step {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .floating-buttons a::before {
        display: none;
    }

    /* Contacto responsive para móviles pequeños */
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-info-card h2,
    .contact-form-card h2 {
        font-size: 1.5rem;
    }

    /* Quiénes Somos responsive para móviles pequeños */
    .about-features,
    .tech-features {
        gap: 10px;
    }
    
    .feature-item,
    .tech-feature {
        font-size: 1rem;
    }
    
    .commitment-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Productos y Servicios responsive para móviles pequeños */
    .product-features,
    .service-features {
        gap: 8px;
    }
    
    .feature-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .product-image-large img,
    .service-image-large img {
        height: 250px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }

    /* Galería responsive para móviles pequeños */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image-container {
        height: 200px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .project-details {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 968px) {
    .contact-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Quiénes Somos responsive para tablets */
    .about-two-columns,
    .mv-two-columns,
    .team-tech-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-intro,
    .mission-vision-section,
    .values-section,
    .team-tech-section {
        padding: 60px 0;
    }
    
    .about-text-content h2,
    .team-tech-content h2 {
        font-size: 1.8rem;
    }

    /* Productos y Servicios responsive para tablets */
    .product-two-columns,
    .service-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-item,
    .service-item {
        margin-bottom: 80px;
    }
    
    .product-image-large img,
    .service-image-large img {
        height: 350px;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Galería responsive para tablets */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}

/* --- ESTILOS PARA PÁGINA DE INICIO --- */

/* SLIDER HERO */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.slide-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.slide-description {
    color: white;
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.slide-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-slider-primary {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid #285194;
}

.btn-slider-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(40, 81, 148, 0.3);
    background: white;
    color: #285194;
}

.btn-slider-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-slider-secondary:hover {
    transform: translateY(-3px);
    background: white;
    color: #285194;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Controles del slider */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
    color: #285194;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECCIÓN SERVICIOS PRINCIPALES */
.main-services {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #285194;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #285194, #25D366);
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #285194;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: #285194;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: #285194;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
    color: #1a3563;
}

.services-cta {
    text-align: center;
}

.btn-view-all {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid #285194;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(40, 81, 148, 0.3);
    background: white;
    color: #285194;
}

/* SECCIÓN FORTALEZAS */
.company-strengths {
    padding: 100px 0;
}

.strengths-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.strengths-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.strengths-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(40, 81, 148, 0.9), transparent);
    padding: 40px;
    color: white;
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.overlay-content i {
    font-size: 3rem;
}

.overlay-content h3 {
    font-size: 1.8rem;
    margin: 0;
}

.strengths-content h2 {
    color: #285194;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.strengths-intro {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.strengths-list {
    margin-bottom: 40px;
}

.strength-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.strength-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.strength-text h4 {
    color: #285194;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.strength-text p {
    color: #666;
    line-height: 1.6;
}

.strengths-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #285194;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

/* SECCIÓN CTA */
.home-cta {
    background: linear-gradient(135deg, #285194 0%, #1a3563 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: #285194;
    padding: 18px 40px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-cta-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #285194;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .slide-title {
        font-size: 2.8rem;
    }
    
    .strengths-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .strengths-image img {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .slide-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .strengths-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .strengths-content h2 {
        font-size: 2.2rem;
    }
}

/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-toggle .hamburger {
    width: 25px;
    height: 3px;
    background-color: #285194;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #285194;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger::before {
    transform: translateY(-8px);
}

.menu-toggle .hamburger::after {
    transform: translateY(8px);
}

/* Estado activo del botón hamburguesa */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(0, 0);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(0, 0);
}

/* --- MENÚ DE NAVEGACIÓN MEJORADO --- */
.main-nav {
    position: relative;
}

.main-nav ul {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 8px 20px;
    box-shadow: 0 4px 15px rgba(40, 81, 148, 0.1);
    border: 1px solid rgba(40, 81, 148, 0.1);
}

.main-nav ul li {
    margin: 0 15px;
    position: relative;
}

.main-nav ul li a {
    font-weight: 700;
    color: #285194;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 12px 5px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav ul li a i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.main-nav ul li a:hover i {
    transform: translateY(-2px);
}

.main-nav ul li a:hover {
    color: #1a3563;
    transform: translateY(-2px);
}

/* Indicador activo elegante */
.main-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #285194, #1a3563);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::before {
    width: 80%;
}

/* Página activa */
.main-nav ul li a.active {
    color: #1a3563;
    background: rgba(40, 81, 148, 0.05);
    border-radius: 6px;
    padding: 12px 15px;
}

.main-nav ul li a.active::before {
    width: 100%;
    background: linear-gradient(90deg, #285194, #25D366);
}

/* Efecto de burbuja al pasar el mouse */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(40, 81, 148, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.main-nav ul li a:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* --- ESTILOS RESPONSIVOS ACTUALIZADOS --- */

@media (max-width: 1024px) {
    .main-nav ul {
        gap: 5px;
        padding: 8px 15px;
    }
    
    .main-nav ul li {
        margin: 0 8px;
    }
    
    .main-nav ul li a {
        font-size: 0.9rem;
        padding: 10px 4px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        position: relative;
        padding: 15px 0;
    }

    /* Mostrar botón hamburguesa en móvil */
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Ocultar iconos sociales en móvil */
    .header-social {
        display: none;
    }

    /* Menú para móvil */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(40, 81, 148, 0.95);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
        max-width: 400px;
        gap: 0;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .main-nav.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Animación escalonada para los items del menú */
    .main-nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active ul li:nth-child(2) { transition-delay: 0.2s; }
    .main-nav.active ul li:nth-child(3) { transition-delay: 0.3s; }
    .main-nav.active ul li:nth-child(4) { transition-delay: 0.4s; }
    .main-nav.active ul li:nth-child(5) { transition-delay: 0.5s; }

    .main-nav ul li a {
        color: white;
        font-size: 1.2rem;
        padding: 18px 20px;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .main-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateX(10px);
    }

    .main-nav ul li a::before {
        display: none;
    }

    .main-nav ul li a::after {
        display: none;
    }

    .main-nav ul li a i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    /* Logo más pequeño en móvil */
    .logo img {
        height: 70px;
    }

    /* Ocultar el cursor personalizado en móvil */
    .custom-cursor {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .main-nav ul li a {
        font-size: 1.1rem;
        padding: 16px 20px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .menu-toggle {
        right: 10px;
    }
}

/* Para pantallas más pequeñas que 350px */
@media (max-width: 350px) {
    .main-nav ul li a {
        font-size: 1rem;
        padding: 14px 15px;
    }
}