@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #7b01e8;
    --secondary: #7b01e8;
    --accent: #9d34f0;
    --light: #F3E5F5;
    --dark: #4A148C;
    --text: #333;
    --gray: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text);
    overflow-x: hidden;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInFromLeft 0.8s ease;
}

.nav.scrolled {
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    animation: bounceIn 1s ease 0.5s both;
}

.logo img {
    height: 100%;
    object-fit: contain;
}

.logo span {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text);
    margin-left: 5px;
    transition: all 0.3s ease;
}

.logo:hover span {
    transform: scale(1.1);
    color: var(--primary);
}


.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links>* {
    opacity: 0;
    animation: fadeInUp 0.6s ease both;
}

.nav-links>*:nth-child(1) {
    animation-delay: 0.7s;
}

.nav-links>*:nth-child(2) {
    animation-delay: 0.8s;
}

.nav-links>*:nth-child(3) {
    animation-delay: 0.9s;
}

.nav-links>*:nth-child(4) {
    animation-delay: 1.0s;
}

.nav-links>*:nth-child(5) {
    animation-delay: 1.1s;
}

.nav-links>*:nth-child(6) {
    animation-delay: 1.2s;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-links a,
.nav-links select {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: transparent;
}

.nav-links a:hover,
.nav-links select:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.4);
}

.nav-links a.active {
    background: var(--primary);
    color: white;
}

.nav-links select {
    appearance: none;
    background: transparent;
    padding: 0.75rem 2.5rem 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237b01e8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    transition: all 0.3s ease;
}

.nav-links select:hover {
    background-color: var(--primary);
    color: white;
}

.nav-links select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 1, 232, 0.2);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' opacity='0.05' d='M45,-78.1C58.3,-70.3,69,-57.9,78.1,-43.7C87.2,-29.6,94.6,-14.8,94.4,-0.1C94.2,14.6,86.4,29.1,77.4,42.7C68.4,56.3,58.3,68.9,45,77.7C31.7,86.4,15.8,91.4,0.4,90.7C-15,90,-30,83.6,-43.4,74.8C-56.8,66,-68.5,54.8,-77.2,41.2C-85.9,27.6,-91.5,13.8,-91.7,-0.1C-91.9,-14,-86.7,-28,-78.9,-40.8C-71.1,-53.6,-60.7,-65.2,-47.4,-73C-34.1,-80.9,-17,-85,0,-85C17.1,-85,31.7,-85.9,45,-78.1Z' transform='translate(100 100)'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-text {
    flex: 1;
    color: white;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInFromLeft 1s ease;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInFromLeft 1.2s ease 0.2s both;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 8s ease-in-out infinite, slideInFromRight 1s ease;
}

.hero-image img {
    width: 400px;
    height: auto;
}

.features {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237b01e8' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.features>* {
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s both;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: center;
}

.features-grid::after,
.benefits-grid::after {
    content: '';
    grid-column: 1 / -1;
}

.feature-card,
.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card i,
.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.feature-card:hover i,
.benefit-card:hover i {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 5px 10px rgba(123, 1, 232, 0.3));
}

.feature-card h3,
.benefit-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p,
.benefit-card p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, #7b01e8 0%, #9d34f0 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.05'%3E%3Cpath d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z' fill-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.cta-section>* {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-content h2 {
    opacity: 0;
    animation: slideInFromLeft 0.8s ease 0.4s both;
}

.cta-content p {
    opacity: 0;
    animation: slideInFromRight 0.8s ease 0.6s both;
}

.cta-content .btn {
    opacity: 0;
    animation: bounceIn 0.8s ease 0.8s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
    animation: shimmer 0.8s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.6);
    animation: pulse 2s infinite;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.5);
}

.footer {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' opacity='0.05' d='M45,-78.1C58.3,-70.3,69,-57.9,78.1,-43.7C87.2,-29.6,94.6,-14.8,94.4,-0.1C94.2,14.6,86.4,29.1,77.4,42.7C68.4,56.3,58.3,68.9,45,77.7C31.7,86.4,15.8,91.4,0.4,90.7C-15,90,-30,83.6,-43.4,74.8C-56.8,66,-68.5,54.8,-77.2,41.2C-85.9,27.6,-91.5,13.8,-91.7,-0.1C-91.9,-14,-86.7,-28,-78.9,-40.8C-71.1,-53.6,-60.7,-65.2,-47.4,-73C-34.1,-80.9,-17,-85,0,-85C17.1,-85,31.7,-85.9,45,-78.1Z' transform='translate(100 100)'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    opacity: 0.1;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease both;
}

.footer-section:nth-child(1) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.4s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.6s;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-5px) scale(1.2) rotate(10deg);
    filter: drop-shadow(0 5px 10px rgba(157, 52, 240, 0.4));
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

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

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.active {
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links a,
    .nav-links select {
        width: 100%;
        text-align: center;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }

    .feature-card,
    .benefit-card {
        padding: 2rem 1.5rem;
    }

    .btn {
        display: block;
        margin: 1rem auto;
        width: 80%;
        max-width: 300px;
    }

    .hero-text .btn {
        margin: 1rem 0;
    }

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

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

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

    .footer-section a:hover {
        transform: translateX(0) translateY(-3px);
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

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

    .nav {
        padding: 0.5rem 3%;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer {
        padding: 3rem 1rem;
    }

    .nav-links select {
        min-width: 180px;
        font-size: 0.85rem;
    }
}

.mission-vision {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237b01e8' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.mission-vision>* {
    position: relative;
    z-index: 1;
}

.mission-vision-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.mission-vision h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-vision p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.benefits {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237b01e8' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.benefits>* {
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(1),
.benefit-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2),
.benefit-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3),
.benefit-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(4),
.benefit-card:nth-child(4) {
    animation-delay: 0.8s;
}

.feature-card:nth-child(5),
.benefit-card:nth-child(5) {
    animation-delay: 1.0s;
}

.feature-card:nth-child(6),
.benefit-card:nth-child(6) {
    animation-delay: 1.2s;
}

.feature-card:nth-child(7),
.benefit-card:nth-child(7) {
    animation-delay: 1.4s;
}

/* Grid específico para los beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: center;
}

/* Estilo para la última card cuando son 7 elementos */
.benefits-grid .benefit-card:last-child:nth-child(7) {
    grid-column: 2;
}

/* Ajustes responsive */
@media (min-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 350px);
        /* Ancho fijo para mejor control */
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(280px, 350px));
    }

    /* Centrar la última card en pantallas medianas */
    .benefits-grid .benefit-card:last-child:nth-child(7) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: minmax(280px, 350px);
    }

    /* Reset del centrado en móviles */
    .benefits-grid .benefit-card:last-child:nth-child(7) {
        grid-column: 1;
    }
}

/* Mantener el resto de los estilos de las cards igual */
.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
}

/* Estilos para la sección de contacto */
.contact-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237b01e8' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.contact-section>* {
    position: relative;
    z-index: 1;
}

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

.contact-description {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease 0.3s both;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: slideIn 2s ease 1s both;
}

@keyframes slideIn {
    from {
        left: -100%;
    }

    to {
        left: 0;
    }
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease both;
}

.form-group:nth-child(1) {
    animation-delay: 0.5s;
}

.form-group:nth-child(2) {
    animation-delay: 0.7s;
}

.form-group:nth-child(3) {
    animation-delay: 0.9s;
}

.form-group:nth-child(4) {
    animation-delay: 1.1s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group textarea+label {
    top: 1rem;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(123, 1, 232, 0.1);
    transition: all 0.3s ease;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Estilos para el grupo del teléfono */
.phone-group {
    display: flex;
    gap: 1rem;
}

.phone-group select {
    width: 100px;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* Estilos para el botón de envío */
.submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.3s both;
    transition: all 0.3s ease;
}

@keyframes submitPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


.btn-text {
    transition: all 0.3s ease;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
    display: none;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Estado de carga del botón */
.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .spinner {
    display: block;
}

/* Mensaje de error/éxito */
.form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Layout para 6 elementos */
.features-grid .feature-card:nth-child(5) {
    grid-column: 2;
}

.features-grid .feature-card:nth-child(6) {
    grid-column: 3;
}

/* Ajustes responsive */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 350px);
    }

    /* Layout para 6 elementos en pantallas grandes */
    .features-grid .feature-card:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }

    .features-grid .feature-card:nth-child(6) {
        grid-column: 3;
        grid-row: 2;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(280px, 350px));
    }

    /* Layout para 6 elementos en pantallas medianas */
    .features-grid .feature-card:nth-child(5),
    .features-grid .feature-card:nth-child(6) {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: minmax(280px, 350px);
    }

    /* Reset del centrado en móviles */
    .features-grid .feature-card:nth-child(5),
    .features-grid .feature-card:nth-child(6) {
        grid-column: 1;
    }
}

/* Efectos adicionales de hover y micro-interacciones */
.feature-card::before,
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(123, 1, 232, 0.1), rgba(157, 52, 240, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.feature-card:hover::before,
.benefit-card:hover::before {
    opacity: 1;
}

/* Efecto de carga progresivo */
.hero-text .btn {
    opacity: 0;
    animation: bounceIn 0.8s ease 1.5s both;
}

/* Animación para los iconos sociales */
.social-links {
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Parallax suave para el hero */
.hero::before {
    animation: float 15s ease-in-out infinite;
}

/* Efectos de hover mejorados para el nav */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Animación de entrada para las secciones */
@media (prefers-reduced-motion: no-preference) {

    .features,
    .mission-vision,
    .benefits,
    .cta-section,
    .contact-section {
        opacity: 0;
        animation: fadeInUp 0.8s ease both;
    }

    .features {
        animation-delay: 0.1s;
    }

    .mission-vision {
        animation-delay: 0.2s;
    }

    .benefits {
        animation-delay: 0.3s;
    }

    .cta-section {
        animation-delay: 0.4s;
    }

    .contact-section {
        animation-delay: 0.5s;
    }
}

/* Mejoras en el scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efecto de carga para imágenes */
.hero-image img {
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s both;
}

/* Hover effects para el logo */
.logo img {
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Separadores visuales entre secciones */
.section-divider {
    height: 100px;
    background: linear-gradient(45deg, transparent 30%, var(--primary) 50%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Elementos flotantes decorativos */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 15s infinite linear;
}

.floating-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-shape:nth-child(2) {
    top: 70%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: var(--accent);
    transform: rotate(45deg);
    animation-delay: 5s;
    animation-duration: 25s;
}

.floating-shape:nth-child(3) {
    top: 40%;
    left: 80%;
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 20%;
    animation-delay: 10s;
    animation-duration: 18s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

/* Efectos de onda entre secciones */
.wave-separator {
    height: 60px;
    overflow: hidden;
    position: relative;
}

.wave-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50px);
    }
}

/* Gradientes más dinámicos */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Parallax suave para elementos de fondo */
@media (min-width: 768px) {

    .features::before,
    .benefits::before,
    .mission-vision::before {
        animation: parallaxFloat 30s ease-in-out infinite;
    }
}

@keyframes parallaxFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* Elementos geométricos decorativos */
.geometric-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geometric-decoration::before,
.geometric-decoration::after {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    opacity: 0.1;
    animation: rotateGeometry 20s linear infinite;
}

.geometric-decoration::before {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.geometric-decoration::after {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 5%;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    animation-delay: 10s;
}

@keyframes rotateGeometry {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Mejoras adicionales para secciones */
.features,
.mission-vision,
.benefits,
.contact-section {
    position: relative;
}

.features::after,
.mission-vision::after,
.benefits::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 1, 232, 0.1) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    animation: pulseGlow 4s ease-in-out infinite;
}

.mission-vision::after {
    left: -100px;
    right: auto;
    animation-delay: 2s;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Textura sutil en backgrounds */
.features,
.benefits {
    background-attachment: fixed;
}

/* Efecto de cristal en el CTA */
.cta-section {
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sombras dinámicas para las cards */
.feature-card,
.benefit-card {
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(123, 1, 232, 0.05);
}

.feature-card:hover,
.benefit-card:hover {
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(123, 1, 232, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}