:root {
    /* FONDOS */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;

    /* ACENTO PRIMARIO: MORADO INSTITUCIONAL (#6C408F) */
    --primary-50: #f9f5ff;
    --primary-100: #f3ebff;
    --primary-200: #e7d6ff;
    --primary-300: #dab5ff;
    --primary-400: #c587ff;
    --primary-500: #a066eb;
    /* Color base */
    --primary-600: #6c408f;
    --primary-700: #57307a;
    --primary-800: #422055;
    --primary-900: #2d153a;
    --primary-rgb: 108, 64, 143;

    /* TEXTOS */
    --text-primary: #000000;
    --text-secondary: #27272a;
    --text-tertiary: #52525b;
    --text-quaternary: #71717a;

    /* ACENTOS SECUNDARIOS */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;

    /* BRAND PURPLE */
    --brand-purple: #6c408f;
    --brand-purple-rgb: 108, 64, 143;

    /* TRANSICIONES */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- GLASSMORPHISM --- */
.glass-card {
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.08) 0%,
            rgba(var(--primary-rgb), 0.04) 50%,
            rgba(var(--primary-rgb), 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateY(-5px);
}

/* --- BOTONES --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-600);
    color: var(--primary-600);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-400);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(9, 9, 11, 0.95); /* Keep menu dark */
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.navbar.scrolled .logo-img {
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 1.5rem;
    color: #fff;
}

.logo-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(var(--brand-purple-rgb), 0.4));
    transition: var(--transition-smooth);
}

.logo-img-footer {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(var(--brand-purple-rgb), 0.4));
    transition: var(--transition-smooth);
}

.logo-text span {
    color: var(--primary-400);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #e4e4e7;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-400);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-400);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-badge {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--primary-600);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary-500), var(--primary-700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(var(--brand-purple-rgb), 0.5));
    animation: float 6s ease-in-out infinite;
}

.visual-sphere {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* --- SERVICES --- */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-label {
    color: var(--primary-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-title span {
    color: var(--primary-500);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* SLIDE UP CARD ANIMATION */
.service-card-flip {
    height: 450px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra sutil para el fondo blanco */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card-flip:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.2);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.service-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.service-card-flip:hover .service-card-front img {
    transform: scale(1.1); /* Efecto zoom a la imagen */
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transition: opacity 0.4s ease;
    z-index: 5;
}

.service-card-flip:hover .service-overlay {
    opacity: 0; /* Desvanece el título frontal para dar paso al reverso */
}

.service-title-front {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.service-card-back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.5); /* 50% transparente a petición del usuario */
    backdrop-filter: blur(15px); /* Aumentado para mantener legibilidad del texto */
    border-radius: 24px;
    transform: translateY(100%); /* Oculto abajo */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

.service-card-flip:hover .service-card-back {
    transform: translateY(0); /* Se desliza hacia arriba */
}

.service-card-back h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-600);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-600);
    border-radius: 8px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- ABOUT ME --- */
.about-me {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
}

.about-image-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.about-image-container:hover .about-img {
    transform: scale(1.05);
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content h2 span {
    color: var(--primary-500);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-intro {
    margin-bottom: 3rem;
}

/* Career Grid */
.career-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.career-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.career-card:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-5px);
}

.career-card-icon {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 15px;
    flex-shrink: 0;
}

.career-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-600);
}

.career-card-body p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}

/* Mission Box */
.mission-box {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    border-left: 4px solid var(--primary-500);
    border-radius: 0 24px 24px 0;
    margin-top: 3rem;
    overflow: hidden;
}

.mission-icon {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 6rem;
    font-family: serif;
    color: rgba(var(--primary-rgb), 0.1);
    line-height: 1;
}

.mission-text {
    position: relative;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    z-index: 1;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .career-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .mission-box {
        text-align: left;
    }
}

/* --- TESTIMONIOS --- */
.testimonials {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

/* --- CONTACT --- */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
    justify-content: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    font-size: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.contact-map {
    width: 100%;
    min-height: 450px;
    border-radius: 24px;
    overflow: hidden;
    grid-column: 1 / -1;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    margin-top: 0;
}

.contact-map:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    transform: translateY(-5px);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .contact-map {
        height: 300px;
    }
}

/* --- FOOTER --- */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--primary-600);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- PARTICULAS --- */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.3;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1200px) {
    .container {
        padding: 0 5%;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-primary.in-navbar {
        display: none;
        /* Hide button in navbar on small screens to prioritize menu */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .visual-sphere {
        width: 400px;
        height: 400px;
    }

    .logo-img {
        height: 80px;
    }

    .navbar.scrolled .logo-img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0 !important;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-menu {
        display: none;
    }

    .footer-grid>div {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .form-group[style*="flex-direction: row"] {
        flex-direction: column !important;
    }

    .form-group[style*="flex-direction: row"] input {
        border-radius: 12px !important;
        margin-bottom: 0.5rem;
    }

    .form-group[style*="flex-direction: row"] button {
        border-radius: 12px !important;
        width: 100%;
    }

    .logo-img {
        height: 70px;
    }

    .navbar.scrolled .logo-img {
        height: 50px;
    }

    .logo-img-footer {
        height: 65px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .visual-sphere {
        width: 300px;
        height: 300px;
    }

    .logo-img {
        height: 55px;
    }

    .navbar.scrolled .logo-img {
        height: 45px;
    }

    .logo-img-footer {
        height: 55px;
    }
}

/* --- DOCTORALIA SECTION --- */
.doctoralia-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.doctoralia-text-link {
    color: var(--primary-400);
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.doctoralia-text-link:hover {
    color: var(--primary-300);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .about-actions {
        flex-direction: column;
        gap: 1.5rem;
    }

    .doctoralia-text-link {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* --- PAYMENT METHODS --- */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1 1 calc(25% - 1rem);
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.payment-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-400);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.payment-logo-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.payment-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.payment-badge.all-cards {
    width: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), transparent);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    .payment-item {
        flex: 1 1 calc(33.33% - 1rem);
    }
}

@media (max-width: 768px) {
    .payment-grid {
        justify-content: center;
    }
    
    .payment-item {
        flex: 1 1 calc(50% - 1rem);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .payment-item {
        flex: 1 1 100%;
    }
}

/* --- NEW PAYMENT BANNER SECTION --- */
.payment-banner-section {
    background-color: rgba(var(--primary-rgb), 0.1); /* Back morado 10% */
    padding: 6rem 0;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.payment-banner-content {
    max-width: 900px;
    margin: 0;
    text-align: left;
}

.payment-banner-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.payment-banner-title span {
    color: var(--primary-600);
}

.payment-banner-divider {
    width: 100%;
    max-width: 450px;
    height: 6px;
    background: #d4a04d; /* Dorado institucional de la imagen */
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

.payment-banner-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 3rem;
    font-weight: 500;
}

.payment-banner-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.payment-banner-logos img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: var(--transition-smooth);
}

.payment-banner-logos img:hover {
    transform: scale(1.1);
}

.payment-logo-divider {
    height: 35px;
    width: 2px;
    background-color: rgba(var(--primary-rgb), 0.3); /* Morado sutil para dividir */
    margin: 0 0.5rem;
}

@media (max-width: 1024px) {
    .payment-banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .payment-banner-section {
        padding: 4rem 0;
    }

    .payment-banner-title {
        font-size: 2.2rem;
    }

    .payment-banner-divider {
        max-width: 100%;
    }

    .payment-banner-logos {
        gap: 1.5rem;
        justify-content: center;
    }

    .payment-banner-logos img {
        height: 35px;
    }
    
    .payment-logo-divider {
        display: none;
    }
}

.payment-banner-badge {
    margin-top: 2rem;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-700);
    letter-spacing: 0.5px;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background-color: rgba(37, 211, 102, 0.25); /* Semi-transparente institucional */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6; /* Sutil por defecto */
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(8deg);
    background-color: #25d366; /* Color completo al hover */
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
    opacity: 1; /* Gana total opacidad */
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 58px;
        height: 58px;
    }
}


