:root {
    --primary-color: #408ac8;
    --secondary-color: #a9c9b6;
    --accent-color: #d64180;
    --bg-light: #f5f0eb;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #deb60c;
    --gradient-1: linear-gradient(135deg, #408ac8 0%, #d64180 100%);
    --gradient-2: linear-gradient(135deg, #efe9dc 0%, #deb60c 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 600px;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-link {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.btn-link:hover {
    color: white;
}

/* Cookie Modal */
.cookie-modal {
    max-width: 500px;
}

.cookie-category {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    position: relative;
    margin-right: 1rem;
    transition: background 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-color);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(25px);
}

.toggle-slider.essential {
    background: var(--primary-color);
    opacity: 0.6;
}

.toggle-slider.essential:before {
    transform: translateX(25px);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-info {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
    opacity: 0.8;
}

.cookie-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-info a:hover {
    text-decoration: underline;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(167, 139, 250, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Breathing Animation */
.breathing-container {
    position: relative;
    width: 400px;
    height: 400px;
    animation: fadeIn 1s ease 0.6s;
    animation-fill-mode: both;
}

.breathing-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-1);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
    box-shadow: var(--shadow-large);
}

.breathing-circle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Meditation Timer */
.timer-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(167, 139, 250, 0.1) 100%);
}

.timer-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-large);
    text-align: center;
}

.timer-display {
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-color);
    margin: 2rem 0;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timer-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.timer-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.timer-btn:active {
    transform: scale(0.95);
}

.duration-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.duration-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-btn.active,
.duration-btn:hover {
    background: var(--primary-color);
    color: white;
}

.timer-progress {
    width: 100%;
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 2rem;
}

.timer-progress-bar {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 1s linear;
}

/* Blog Section */
.blog {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

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

.blog-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
}

/* Resources Section */
.resources {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(167, 139, 250, 0.1) 100%);
}

.resources-locked {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: 30px;
    box-shadow: var(--shadow-large);
}

.lock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-large);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid transparent;
    background: var(--bg-light);
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Legal Pages Styles */
.legal-page {
    margin-top: 80px;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

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

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.last-updated {
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

    .breathing-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .timer-display {
        font-size: 3rem;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ====== ESTILOS WHATSAPP ====== */
/* Añadir al final de styles.css */

/* WhatsApp Principal */
.whatsapp-main {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.whatsapp-main h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.whatsapp-main p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-whatsapp-main {
    background: white;
    color: #25D366;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: #1a8a47;
}

/* Consultas Rápidas */
.quick-contact {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.quick-contact h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-contact p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.quick-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-btn {
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Colores específicos para cada botón */
.quick-btn.info {
    background: #E3F2FD;
    color: #1976D2;
}

.quick-btn.info:hover {
    background: #BBDEFB;
}

.quick-btn.signup {
    background: #E8F5E8;
    color: #2E7D32;
}

.quick-btn.signup:hover {
    background: #C8E6C9;
}

.quick-btn.session {
    background: #FFF3E0;
    color: #F57C00;
}

.quick-btn.session:hover {
    background: #FFE0B2;
}

.quick-btn.corporate {
    background: #F3E5F5;
    color: #7B1FA2;
}

.quick-btn.corporate:hover {
    background: #E1BEE7;
}

.quick-btn.beginner {
    background: #E0F2F1;
    color: #00695C;
}

.quick-btn.beginner:hover {
    background: #B2DFDB;
}

.quick-btn.help {
    background: #FFEBEE;
    color: #C62828;
}

.quick-btn.help:hover {
    background: #FFCDD2;
}

/* Información Extra */
.contact-info-extra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-method strong {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.contact-method p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Container principal */
.whatsapp-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Botón principal */
.whatsapp-float {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    justify-content: center;
}

/* Icono SVG */
.whatsapp-float svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: white;
}

/* Texto del botón */
.whatsapp-text {
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Indicador online */
.whatsapp-online-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #00FF00;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-online 2s infinite;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-content {
    background: #1F2937;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Flecha del tooltip */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #1F2937;
}

/* Estados hover */
.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    padding-right: 24px;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    width: auto;
    margin-left: 4px;
}

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

/* Animaciones */
@keyframes pulse-online {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animación de entrada */
.whatsapp-float {
    animation: whatsapp-entry 0.6s ease;
}

@keyframes whatsapp-entry {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        transform: scale(1.1) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Versión compacta para móviles */
@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        padding: 14px;
        min-width: 52px;
        border-radius: 50%;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    /* En móvil no mostramos texto, solo icono */
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float:hover {
        padding: 14px;
        border-radius: 50%;
    }
    
    /* Tooltip más pequeño en móvil */
    .tooltip-content {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .whatsapp-online-indicator {
        top: 6px;
        right: 6px;
        width: 10px;
        height: 10px;
    }
}

/* Versión aún más pequeña para pantallas muy pequeñas */
@media (max-width: 480px) {
    .whatsapp-float {
        padding: 12px;
        min-width: 48px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Estado activo/pressed */
.whatsapp-float:active {
    transform: scale(0.95);
}

/* Accesibilidad - modo alto contraste */
@media (prefers-contrast: high) {
    .whatsapp-float {
        border: 2px solid white;
    }
    
    .tooltip-content {
        border: 1px solid white;
    }
}

/* Respeto a las preferencias de animación */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-tooltip,
    .whatsapp-text,
    .whatsapp-online-indicator {
        animation: none;
        transition: none;
    }
}

/* Efecto de brillito ocasional para llamar la atención */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 50px;
    opacity: 0;
    animation: whatsapp-shine 3s infinite 2s;
}

@keyframes whatsapp-shine {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(100%);
    }
}

/* ====== MODAL WHATSAPP CSS ====== */
/* Añadir al final de styles.css */

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal base - IMPORTANTE: usar #whatsappModal directamente */
#whatsappModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#whatsappModal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Contenido del modal */
.whatsapp-modal {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#whatsappModal.active .whatsapp-modal {
    transform: scale(1);
}

/* Header del modal */
.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
}

/* Formulario del modal */
#whatsappDataForm {
    padding: 2rem;
}

/* Fila de formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25D366;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

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

/* Contador de caracteres */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

/* Checkbox personalizado */
.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 3px;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: inline-block;
}

/* Por defecto el checkbox está desmarcado, así que no se muestra el check */
.checkbox-label input[type="checkbox"]:not(:checked) + .checkmark::after {
    content: '';
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #25D366;
    border-color: #25D366;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label a {
    color: #25D366;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-whatsapp-send {
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-send:hover {
    background: #20B954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-cancel {
    background: #F3F4F6;
    color: #6B7280;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #E5E7EB;
    color: #374151;
}

/* Información del formulario */
.form-info {
    margin-top: 1rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.85rem;
    background: #F9FAFB;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #25D366;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .whatsapp-modal {
        width: 98%;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    #whatsappDataForm {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-whatsapp-send,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar personalizada para el modal */
.whatsapp-modal::-webkit-scrollbar {
    width: 6px;
}

.whatsapp-modal::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.whatsapp-modal::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.whatsapp-modal::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ====== ESTILOS DEL BOTÓN DE EMAIL ====== */
/* Opciones de contacto */

.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-option {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px);
}

.whatsapp-option {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.email-option {
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    color: white;
}

.contact-option h4 {
    color: white;
}

/* ====== EMAIL MEJORADO CSS ====== */

/* Sección de métodos de contacto */
.contact-methods-section {
    margin: 3rem 0;
    text-align: center;
}

.contact-methods-section h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Grid de opciones de contacto */
.contact-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Opción de contacto mejorada */
.contact-option {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    text-align: left;
    border: 2px solid transparent;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.whatsapp-option {
    border-color: #25D366;
}

.whatsapp-option:hover {
    border-color: #20B954;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.02) 0%, rgba(32, 185, 84, 0.05) 100%);
}

.email-option {
    border-color: var(--primary-color);
}

.email-option:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.02) 0%, rgba(139, 92, 246, 0.05) 100%);
}

/* Header de la opción */
.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    flex-shrink: 0;
}

.option-title h4 {
    font-size: 1.4rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.option-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-badge.instant {
    background: #dcfce7;
    color: #166534;
}

.option-badge.formal {
    background: #ede9fe;
    color: #5b21b6;
}

/* Contenido de la opción */
.option-content {
    margin-bottom: 1.5rem;
}

.option-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.option-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-benefits li {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Botones de opción */
.btn-option-primary {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 15px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.btn-option-primary.whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-option-primary.whatsapp:hover {
    background: #20B954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-option-primary.email {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-option-primary.email:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.btn-option-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    border: 2px solid currentColor;
    background: transparent;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-option-secondary.email {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-option-secondary.email:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Botones de email */
.email-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Modal de email */
.email-modal {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.email-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Botón de envío de email */
.btn-email-send {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-email-send:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.btn-email-send:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive para opciones de contacto */
@media (max-width: 768px) {
    .contact-options-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-option {
        padding: 1.5rem;
    }
    
    .option-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .option-icon {
        margin: 0 auto;
    }
    
    .email-buttons {
        gap: 0.5rem;
    }
    
    .btn-option-primary,
    .btn-option-secondary {
        font-size: 0.9rem;
        padding: 0.875rem 1.5rem;
    }
    
    .email-modal {
        width: 98%;
        max-height: 95vh;
    }
}

/* Estados de loading para botones */
.btn-option-primary.loading {
    position: relative;
    color: transparent;
}

.btn-option-primary.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mejoras visuales adicionales */
.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-option:hover::before {
    opacity: 0.3;
}

.whatsapp-option::before {
    background: linear-gradient(90deg, transparent, #25D366, transparent);
}

.email-option::before {
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* CORRECCIÓN DE Z-INDEX PARA MODALES */
#emailModal {
    z-index: 10000 !important;
}

#whatsappModal {
    z-index: 10000 !important;
}

#modalOverlay {
    z-index: 9999 !important;
}

#emailModal .modal-content,
#whatsappModal .modal-content {
    position: relative;
    z-index: 10001 !important;
}

.modal-overlay.active {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
}

#emailModal.active,
#whatsappModal.active {
    pointer-events: all !important;
}
