:root {
    --primary-color: #173C58;
    --secondary-color: #c45d32;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --menu-bg: rgba(23, 60, 88, 0.98);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    overflow: hidden;
    transition: color 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -75%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, var(--secondary-color), #ff8c42, var(--primary-color));
    transform: skewX(-20deg);
    transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
    z-index: -1;
    opacity: 0.7;
}

.nav-link:hover::before {
    left: 120%;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #ff8c42);
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1), left 0.4s cubic-bezier(0.4,0,0.2,1);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Letras saltarinas */
.nav-link span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.nav-link:hover span {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%   { transform: translateY(0);}
    30%  { transform: translateY(-8px);}
    50%  { transform: translateY(2px);}
    70%  { transform: translateY(-4px);}
    100% { transform: translateY(0);}
}

/* Brillo animado */
.nav-link .shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.2) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
    z-index: 2;
}

.nav-link:hover .shine {
    left: 120%;
}

@media (max-width: 768px) {
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

.logo img {
    height: 100px;
    width: auto;
}

/* Menú Toggle */
.menu-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

/* Menú Lateral */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--menu-bg);
    padding: 2rem;
    transition: var(--transition);
    overflow-y: auto;
    z-index: 1001;
}

.side-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--white);
}

.close-menu {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--secondary-color);
}

/* Secciones del Menú */
.menu-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.section-header:hover {
    color: var(--secondary-color);
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.section-header i {
    transition: var(--transition);
}

.section-header.active i {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--white);
    padding: 0 1rem;
}

.section-content.active {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.section-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Servicios en el Menú */
.servicios-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.servicio {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.servicio:hover {
    background: rgba(255, 255, 255, 0.2);
}

.servicio i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.servicio h4 {
    font-size: 1rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background-color: var(--light-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-description {
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 2rem 0;
    max-width: 600px;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFade 0.8s ease forwards;
    animation-delay: 0.5s;
    text-align: justify;
}

.hero-description:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left-width: 6px;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

/* Servicios Destacados */
.servicios-destacados {
    padding: 0 2rem 6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.servicios-banner {
    background: linear-gradient(45deg, var(--secondary-color) 0%, #ff8c42 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(196, 93, 50, 0.3);
    text-transform: uppercase;
}

.servicios-banner:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.servicios-destacados h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.servicios-destacados h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
    transform: scaleX(0);
    animation: expandWidth 1s ease forwards;
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}

.servicios-slider {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .servicios-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servicios-slider {
        grid-template-columns: 1fr;
    }
}

.servicio-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.servicio-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(23, 60, 88, 0.05) 0%, 
        rgba(196, 93, 50, 0.05) 100%);
    clip-path: circle(0% at 50% 50%);
    transition: all 0.6s ease-out;
}

.servicio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.servicio-card:hover:before {
    clip-path: circle(100% at 50% 50%);
}

.servicio-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.servicio-card:hover i {
    color: var(--secondary-color);
    transform: scale(1.1) rotate(10deg);
}

.servicio-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.servicio-card:hover h3 {
    color: var(--secondary-color);
}

.servicio-card p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.servicio-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

.card-link i {
    font-size: 1rem;
    margin: 0;
    color: var(--secondary-color);
}

.servicio-card:hover .card-link i {
    transform: translateX(5px);
}

/* Animación de entrada escalonada */
.servicio-card {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.6s ease forwards;
}

.servicio-card:nth-child(1) { animation-delay: 0.2s; }
.servicio-card:nth-child(2) { animation-delay: 0.4s; }
.servicio-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo al hover */
.servicio-card:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.servicio-card:hover:after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .servicios-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servicios-slider {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .servicio-card {
        padding: 2rem;
    }

    .servicios-destacados h2 {
        font-size: 2rem;
    }
}

/* Inicio Section */
.inicio {
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.inicio-text h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.inicio-text p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.inicio-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Servicios Section */
.servicios {
    background-color: var(--light-bg);
    padding: 4rem 2rem;
}

.servicios h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 60, 88, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(23, 60, 88, 0.05) 0%, rgba(196, 93, 50, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.service-list li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.service-list li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.service-card .cta-btn {
    margin-top: auto;
    width: fit-content;
    align-self: center;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .service-card {
        padding: 2rem;
    }
}

/* Contacto Section */
.contacto {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.contacto h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-text {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.contact-text i {
    font-size: 1.2em;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

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

    .footer-section h4:after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .contact-info p {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .side-menu {
        max-width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .servicios-slider {
        grid-template-columns: 1fr;
    }

    .servicio-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .inicio {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el enlace "más información" */
.more-info {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.more-info:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Estilos para las páginas individuales */
.page-content {
    padding-top: 120px;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos para la página de servicios */
.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
}

.service-list li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Estilos para la página de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Estilos para la página Quiénes Somos */
.team-section {
    text-align: center;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: justify;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo i {
    font-size: 2.5rem;
    color: var(--white);
}

/* --- Misión y Visión destacados --- */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

.mission-vision.full-width {
    grid-template-columns: 1fr;
}

.mission-vision.full-width .mission {
    max-width: 100%;
}

.mission, .vision {
    background: linear-gradient(120deg, #f8f9fa 80%, #e9ecef 100%);
    border-left: 6px solid var(--secondary-color);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(23, 60, 88, 0.08);
    padding: 2.2rem 2rem 2rem 2.5rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: misionVisionFadeIn 0.8s forwards;
}

.mission { animation-delay: 0.1s; }
.vision { animation-delay: 0.3s; }

.mission:hover, .vision:hover {
    transform: translateY(-8px) scale(1.03) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(196, 93, 50, 0.13), 0 2px 8px rgba(23, 60, 88, 0.10);
    border-left-color: var(--primary-color);
}

.mission h3, .vision h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.mission h3::before {
    content: '\f135'; /* fa-bullseye-arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.vision h3::before {
    content: '\f06e'; /* fa-eye */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* Estilo específico para el título de experiencia */
.mission h3:has(+ p:contains("En GALAW contamos con experiencia"))::before {
    content: '\f0b1'; /* fa-balance-scale */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.mission p {
    color: #333;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.mission ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.mission ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-size: 1.08rem;
    line-height: 1.7;
}

.mission ul li:before {
    content: '\f00c'; /* fa-check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.1em;
}

@keyframes misionVisionFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .mission, .vision {
        padding: 2rem 1.2rem 1.5rem 1.5rem;
    }
}

/* Actualizar los estilos existentes y agregar nuevos para el botón */
.cta-btn {
    background: linear-gradient(45deg, #ff6b35 0%, #ff8c42 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.5s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(45deg, #ff8c42 0%, #ff6b35 100%);
}

.cta-btn:hover:before {
    left: 100%;
}

.cta-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Agregar un icono al botón */
.cta-btn:after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-btn:hover:after {
    transform: translateX(5px);
}

/* Animación de pulso para llamar la atención */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}

.hero-text .cta-btn {
    animation: pulse 2s infinite;
}

/* Ajuste responsive */
@media (max-width: 768px) {
    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Agregar la fuente Source Sans Pro */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');

/* Estilos responsivos para la descripción */
@media (max-width: 768px) {
    .hero-description {
        font-size: 1.2rem;
        margin: 1.5rem 0;
        padding: 1.2rem;
        line-height: 1.6;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Tooltip para el botón de WhatsApp */
.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ajustes responsive para el botón de WhatsApp */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }
}

/* Animaciones de transición entre páginas */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active {
    transform: translateX(0);
}

.page-transition.reverse {
    transform: translateX(-100%);
}

/* Animación de entrada para el contenido */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-content {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animación para el header */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animación para el footer */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Efecto de brillo en la transición */
.page-transition::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }

}

/* --- Sección de Valores --- */
.valores-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.valores-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.valor {
    background: linear-gradient(135deg, #f8f9fa 60%, #e9ecef 100%);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(23, 60, 88, 0.08);
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: valorFadeIn 0.8s forwards;
}

.valor:nth-child(1) { animation-delay: 0.1s; }
.valor:nth-child(2) { animation-delay: 0.2s; }
.valor:nth-child(3) { animation-delay: 0.3s; }
.valor:nth-child(4) { animation-delay: 0.4s; }
.valor:nth-child(5) { animation-delay: 0.5s; }
.valor:nth-child(6) { animation-delay: 0.6s; }

.valor:hover {
    transform: translateY(-8px) scale(1.03) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(196, 93, 50, 0.13), 0 2px 8px rgba(23, 60, 88, 0.10);
    border-color: var(--secondary-color);
}

.valor-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.valor-icon i {
    transition: all 0.3s ease;
}

.valor:hover .valor-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.valor:hover .valor-icon i {
    transform: scale(1.1);
}

.valor h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.valor p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 0;
}

@keyframes valorFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Badge de inicial para valores */
.valor-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary-color) 60%, var(--primary-color) 100%);
    border-radius: 50%;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 2px 8px rgba(196, 93, 50, 0.10);
    letter-spacing: 1px;
    animation: badgePop 0.7s cubic-bezier(0.4,0,0.2,1);
    border: 3px solid #fff;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}
.valor:hover .valor-badge {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 6px 18px rgba(196, 93, 50, 0.18);
}
@keyframes badgePop {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* --- Diseño para 'Nuestro Equipo' y su texto --- */
.nuestro-equipo-section {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}
.nuestro-equipo-img {
    flex: 0 0 160px;
    max-width: 160px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(23, 60, 88, 0.10);
    object-fit: cover;
    height: 160px;
    background: #e9ecef;
}
.nuestro-equipo-content {
    flex: 1 1 0%;
}
.nuestro-equipo-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.1rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(196, 93, 50, 0.08);
    text-align: center;
}
.nuestro-equipo-content .team-intro {
    text-align: justify;
    color: var(--text-color);
    font-size: 1.13rem;
    line-height: 1.7;
    margin-bottom: 0;
    background: linear-gradient(90deg, #f8f9fa 80%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(23, 60, 88, 0.06);
}
@media (max-width: 900px) {
    .nuestro-equipo-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .nuestro-equipo-img {
        max-width: 100%;
        width: 100%;
        height: 140px;
    }
}

.services-intro {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(23, 60, 88, 0.03) 0%, rgba(196, 93, 50, 0.03) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.services-intro:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(23, 60, 88, 0.05) 0%, 
        rgba(196, 93, 50, 0.05) 100%);
    clip-path: circle(0% at 50% 50%);
    animation: expandCircle 1.5s ease-out forwards;
}

.services-intro p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.services-intro:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: expandWidth 1s ease forwards 0.5s;
}

@keyframes expandCircle {
    from {
        clip-path: circle(0% at 50% 50%);
    }
    to {
        clip-path: circle(100% at 50% 50%);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .services-intro {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .services-intro p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

.why-choose-us {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.why-choose-us h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: expandWidth 1s ease forwards 0.5s;
}

.why-choose-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(23, 60, 88, 0.03) 0%, rgba(196, 93, 50, 0.03) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.why-choose-intro:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(23, 60, 88, 0.05) 0%, 
        rgba(196, 93, 50, 0.05) 100%);
    clip-path: circle(0% at 50% 50%);
    animation: expandCircle 1.5s ease-out forwards;
}

.why-choose-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    position: relative;
    z-index: 1;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.benefit {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 60, 88, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.benefit:nth-child(1) { animation-delay: 0.4s; }
.benefit:nth-child(2) { animation-delay: 0.6s; }
.benefit:nth-child(3) { animation-delay: 0.8s; }

.benefit:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.benefit i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.benefit h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .why-choose-intro {
        padding: 2rem;
        margin-bottom: 3rem;
    }

    .why-choose-intro p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .why-choose-us h2 {
        font-size: 2rem;
    }
}

/* Bloque experiencia nacional GALAW - animación y marco únicos */
.experiencia-nacional-galaw {
    background: linear-gradient(120deg, #f8f9fa 80%, #e9ecef 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(23, 60, 88, 0.13), 0 2px 8px rgba(196, 93, 50, 0.10);
    margin: 3.5rem 0;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.85) rotate(-4deg);
    animation: galawPopIn 1.1s cubic-bezier(0.4,1.4,0.2,1) forwards;
    transition: box-shadow 0.4s, background 0.4s, transform 0.4s;
}

.experiencia-content {
    max-width: 1200px;
    margin: 0 auto;
}

.experiencia-content h3 {
    color: var(--secondary-color);
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #ffe5d0, 0 1px 0 #fff;
    background: #fff7f2;
    border: 3px solid var(--secondary-color);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(196, 93, 50, 0.10);
    padding: 1.1rem 1.5rem;
    display: inline-block;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: tituloFadeIn 1.1s cubic-bezier(0.4,0,0.2,1) forwards 0.3s;
}

.experiencia-content p {
    text-align: justify;
    font-size: 1.13rem;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.experiencia-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.experiencia-content li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
    position: relative;
    list-style: none;
    padding-left: 2.1em;
    text-align: justify;
    font-size: 1.13rem;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.experiencia-content li:before {
    content: '\f24e'; /* fa-balance-scale */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    text-shadow: 0 1px 4px #ffe5d0;
}

@media (max-width: 900px) {
    .experiencia-nacional-galaw {
        padding: 1.5rem;
    }
    
    .experiencia-content h3 {
        font-size: 1.5rem;
        padding: 0.8rem 1.2rem;
    }
    
    .experiencia-content p,
    .experiencia-content li {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .experiencia-nacional-galaw {
        padding: 1.2rem;
    }
    
    .experiencia-content h3 {
        font-size: 1.3rem;
        padding: 0.7rem 1rem;
    }
    
    .experiencia-content p,
    .experiencia-content li {
        font-size: 1rem;
    }
}

@keyframes galawPopIn {
    0% { opacity: 0; transform: scale(0.85) rotate(-4deg); }
    60% { opacity: 1; transform: scale(1.05) rotate(2deg); }
    80% { transform: scale(0.98) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
