:root {
    /* Colores */
    --color-primary: #28B478;
    --color-secondary: #84DCC6;
    --color-background: #F0F8F6;
    --color-footer-bg: #0F4C5C;
    --color-button: #28B478;
    --color-text-dark: #2c3e50; /* Verde oscuro para texto */
    --color-text-light: #7f8c8d; /* Gris ceniza para texto */
    --color-glass-light: rgba(255, 255, 255, 0.2);
    --color-glass-border: rgba(255, 255, 255, 0.3);

    /* Gradientes de fondo para secciones */
    --section-bg-1: #F0F8F6;
    --section-bg-2: #D8F2EA;
    --section-bg-3: #E6F7F3;
    --section-bg-4: #C7EAE4;
    --section-bg-5: #B9E7E0;

    /* Tipografía */
    --font-family-body: 'Inter', 'Open Sans', sans-serif;
    --font-family-heading: 'Quicksand', 'Montserrat', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.7;

    /* Espaciado y radios */
    --spacing-unit: 1rem;
    --border-radius-small: 0.5rem;
    --border-radius-medium: 1rem;

    /* Sombras */
    --shadow-neumorphic-light: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.7);
    --shadow-neumorphic-inset: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
    color: var(--color-text-light);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-neumorphic-light); /* Sombra exterior suave */
}

/* Primary button */
.btn-primary {
    background: linear-gradient(145deg, var(--color-button), darken(var(--color-button), 10%));
    color: #ffffff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.7), var(--shadow-neumorphic-inset); /* Neomorfismo suave */
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 14px rgba(0, 0, 0, 0.15), -7px -7px 14px rgba(255, 255, 255, 0.8), var(--shadow-neumorphic-inset);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
}

/* Header sticky con glassmorphism */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-glass-light);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-glass-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-glass);
}

.header-sticky .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-sticky .logo {
    font-family: var(--font-family-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.header-sticky .nav-menu a {
    margin-left: 1.5rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.header-sticky .nav-menu a:hover {
    color: var(--color-primary);
}

/* Botón de "Reservar Consulta" con efecto pop */
.btn-reserve {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-reserve:hover {
    transform: scale(1.05) translateY(-3px); /* Efecto pop */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Secciones de fondo */
.section-bg-1 {
    background-color: var(--section-bg-1);
    padding: 4rem 0;
}

.section-bg-2 {
    background-color: var(--section-bg-2);
    padding: 4rem 0;
}

.section-bg-3 {
    background-color: var(--section-bg-3);
    padding: 4rem 0;
}

.section-bg-4 {
    background-color: var(--section-bg-4);
    padding: 4rem 0;
}

.section-bg-5 {
    background-color: var(--section-bg-5);
    padding: 4rem 0;
}

/* Contenedor genérico */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
}

footer a {
    color: var(--color-secondary);
}

footer a:hover {
    color: var(--color-primary);
}

/* Estilos para tarjetas (ejemplo de neomorfismo sutil) */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-medium);
    padding: 2rem;
    box-shadow: var(--shadow-neumorphic-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15), -8px -8px 16px rgba(255, 255, 255, 0.8);
}

/* Inputs de formulario con neomorfismo */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: var(--border-radius-small);
    background-color: var(--color-background);
    box-shadow: var(--shadow-neumorphic-inset);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15), inset -2px -2px 5px rgba(255, 255, 255, 0.6), 0 0 0 2px var(--color-primary);
}

/* Utilidades para espaciado */
.py-8 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.my-8 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

/* Responsividad básica */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .header-sticky .container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .header-sticky .nav-menu {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-sticky .nav-menu a {
        margin: 0.5rem 0;
    }

    .btn {
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-bg-1, .section-bg-2, .section-bg-3, .section-bg-4, .section-bg-5 {
        padding: 2.5rem 0;
    }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}