/*
Theme Name: W&G Dental V12 (Calendly Auto-Refresh)
Theme URI: https://wgdental.cl
Author: W&G Dental
Author URI: https://wgdental.cl
Description: Tema premium con integración final de Calendly y reservas automáticas. Se recarga sola tras agendar.
Version: 12.0.0
License: GNU General Public License v2 or later
Text Domain: wgdental12
*/

:root {
    /* Color Palette */
    --primary-color: #0A52A3;
    /* Darker, trust-inspiring blue */
    --primary-light: #4A90E2;
    /* Friendly, approachable mid-blue */
    --accent-color: #2ED573;
    /* Fresh mint green for success/highlight */
    --accent-light: #E8F8EE;
    --text-main: #2F3640;
    /* Soft black for readability */
    --text-muted: #718093;
    /* Subtle gray for descriptions */
    --bg-light: #F8F9FA;
    /* Off-white for sections */
    --bg-white: #FFFFFF;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Effects and Transitions */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography Classes */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.highlight-text {
    color: var(--primary-light);
    display: inline-block;
}

.highlight {
    color: var(--primary-light);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 82, 163, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    animation: slideUp 0.8s ease backwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease backwards 0.2s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideUp 0.8s ease backwards 0.4s;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease backwards 0.4s;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    background: white;
    box-shadow: var(--shadow-lg);
}

.rounded-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--accent-color);
    animation: scaleIn 0.5s ease backwards 0.8s;
}

.badge-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.badge-title {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.badge-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.trust-container-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-card-mini {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trust-card-mini i {
    font-size: 1.8rem;
    color: var(--primary-light);
    background: rgba(74, 144, 226, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.trust-card-mini h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.trust-card-mini p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-muted);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(74, 144, 226, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background-color: var(--primary-light);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-main);
}

.service-card p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Booking Section */
.booking-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.booking-container {
    position: relative;
    display: flex;
    gap: 4rem;
    background: var(--bg-white);
    padding: 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.booking-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 82, 163, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.booking-form-wrapper {
    flex: 1;
    background: white;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    color: var(--primary-color);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.input-with-icon,
.select-wrapper {
    position: relative;
}

.input-with-icon i,
.select-wrapper .select-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input,
.select-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #F7FAFC;
    transition: var(--transition-fast);
}

.input-with-icon input:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Footer Section */
.footer {
    background-color: #1E293B;
    color: #CBD5E1;
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: #CBD5E1;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    background-color: #0F172A;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #334155;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .experience-badge {
        bottom: 20px;
        left: 20px;
    }

    .booking-container {
        flex-direction: column;
        padding: 2rem;
    }

    .trust-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for mobile layout simplicity */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}