:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Glassmorphism Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 32px;
    color: var(--primary);
}

.logo h1 {
    font-size: 20px;
    line-height: 1.2;
}

.logo span {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

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

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #0f172a;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: var(--white);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 24px;
}

.hero-image-wrapper {
    position: relative;
}

.blob-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.hero-img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Services */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: #e2e8f0;
    box-shadow: var(--shadow);
}

.service-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Appointment */
.appointment-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.appointment-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.appointment-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.contact-details i {
    color: var(--whatsapp);
    font-size: 24px;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select {
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.submit-btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.privacy-notice {
    margin-top: 16px;
    font-size: 12px !important;
    color: var(--text-light) !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.privacy-notice i {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 2px;
}

/* Footer */
footer {
    background: #0f172a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-brand h2 {
    font-size: 24px;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-links p {
    color: #cbd5e1;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Mapa embebido */
.map-wrapper {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
}

.map-wrapper iframe {
    display: block;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 1100;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float i {
    font-size: 34px;
}

.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.08);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .glass-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .glass-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    nav a:not(.btn-primary) {
        display: none;
    }
    
    .hero-text h2 {
        font-size: 36px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links p {
        text-align: center;
    }
}
