/*
Theme Name: La Veterinaria
Theme URI: https://laveterinaria.me
Author: La Veterinaria - Marta Patricia Ramirez Ordoñez
Description: Tema personalizado para clínica veterinaria La Veterinaria en Popayán
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: laveterinaria
*/

/* ═══════════════════════════════════════
   VARIABLES Y RESET
   ═══════════════════════════════════════ */

:root {
    --navy:        #0f1e2e;
    --navy-mid:    #162840;
    --navy-light:  #1e3a54;
    --accent:      #4fb8a0;
    --accent-dark: #3a9b85;
    --gold:        #e8c46a;
    --white:       #ffffff;
    --off-white:   #f4f7f9;
    --text-light:  #a8bfd1;
    --text-mid:    #6b8fa8;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    --radius:  12px;
    --radius-lg: 24px;
    --shadow:  0 8px 32px rgba(0,0,0,0.18);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   NAVEGACIÓN (AJUSTADA: MÁS GRANDE)
   ═══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;      /* Aumentamos espacio a los lados */
    height: 100px;        /* Aumentado de 72px a 100px para mayor impacto */
    background: rgba(15, 30, 46, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(79, 184, 160, 0.15);
    transition: all 0.4s ease; /* Transición más suave */
}

/* Efecto al bajar: se reduce un poco para no estorbar la lectura */
nav.scrolled { 
    height: 80px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35); 
}

.nav-logo a { display: flex; align-items: center; gap: 15px; }

/* Logo más grande */
.nav-logo .logo-img { 
    height: 65px;         /* Aumentado de 44px a 65px */
    width: auto; 
    transition: height 0.4s ease;
}

nav.scrolled .logo-img {
    height: 50px;         /* Se reduce ligeramente al hacer scroll */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;          /* Más separación entre los links */
}

.nav-links li a {
    padding: 0.8rem 1.2rem;
    font-size: 1.15rem;   /* Fuente ligeramente más grande */
    font-weight: 500;
    color: var(--text-light);
    border-radius: 8px;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
    background: rgba(79, 184, 160, 0.1);
}

.nav-right { display: flex; align-items: center; gap: 2rem; }

.nav-hamburger { display: none; }

/* Botón CTA nav */
.nav-cta {
    padding: 0.4rem 1.1rem;
    background: var(--accent);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 184, 160, 0.3);
}

/* ═══════════════════════════════════════
   CONTENIDO PRINCIPAL
   ═══════════════════════════════════════ */
main { padding-top: 100px; min-height: 60vh; }

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

/* ═══════════════════════════════════════
   HERO - INICIO
   ═══════════════════════════════════════ */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(79,184,160,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(79,184,160,0.15);
    border: 1px solid rgba(79,184,160,0.3);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.75;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
}

/* ═══════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--accent);
    color: var(--navy);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,184,160,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid rgba(15,30,46,0.2);
    border-radius: 50px;
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-lg    { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════
   SECCIONES GENÉRICAS
   ═══════════════════════════════════════ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--navy-mid);
}

.section-light {
    background: var(--off-white);
    color: var(--navy);
}
.section-light .section-label { color: var(--accent-dark); }
.section-light h2              { color: var(--navy); }
.section-light p               { color: #4a6070; }

.section-dark {
    background: var(--navy);
}
.section-dark .btn-ghost,
.home-cta .btn-ghost {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
}
.section-dark .btn-ghost:hover,
.home-cta .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   TARJETAS DE SERVICIOS
   ═══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--navy-light);
    border: 1px solid rgba(79,184,160,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79,184,160,0.4);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 52px; height: 52px;
    background: rgba(79,184,160,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ═══════════════════════════════════════
   PÁGINA QUIÉNES SOMOS
   ═══════════════════════════════════════ */
.about-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    text-align: center;
}

.about-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.about-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    background: var(--navy-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(79,184,160,0.1);
}

.value-item .value-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.value-item h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.4rem; }
.value-item p { font-size: 0.88rem; color: var(--text-light); }

/* ═══════════════════════════════════════
   PÁGINA CONTACTO
   ═══════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--navy-light);
    border-radius: var(--radius);
    border: 1px solid rgba(79,184,160,0.1);
}

.contact-item-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    background: rgba(79,184,160,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-item-text span { display: block; }
.contact-item-text .label {
    font-size: 0.78rem;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.contact-item-text .value { color: var(--white); font-size: 0.97rem; }

.contact-form {
    background: var(--navy-mid);
    border: 1px solid rgba(79,184,160,0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--navy);
    border: 1px solid rgba(79,184,160,0.2);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

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

/* ═══════════════════════════════════════
   PÁGINA RESERVAS (Amelia)
   ═══════════════════════════════════════ */
.reservas-hero {
    padding: 3.5rem 0 2rem;
    text-align: center;
}

.reservas-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.reservas-hero p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

.reservas-container {
    background: var(--navy-mid);
    border: 1px solid rgba(79,184,160,0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

/* Estilos para integrar Amelia con el tema */
.amelia-booking-wrapper .el-button--primary,
.amelia-booking-wrapper .am-primary-button {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--navy) !important;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
    background: #0a1520;
    border-top: 1px solid rgba(79,184,160,0.1);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .footer-logo { height: 44px; margin-bottom: 1rem; }
.footer-brand p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1.1rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}
.footer-contact-item span:first-child { font-size: 1rem; }
.footer-contact-item a,
.footer-contact-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-mid);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 100px; left: 0; right: 0;
        background: var(--navy);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(79,184,160,0.15);
        gap: 0.25rem;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 3.5rem 0; }
    nav { padding: 0 1.25rem; }
    .hero-actions { flex-direction: column; }
    .btn { justify-content: center; }
}

/* ─── SMARTPHONE (≤ 480px) ─────────────────── */
@media (max-width: 480px) {
    /* Nav: más compacto */
    nav                      { height: 70px; padding: 0 1rem; }
    nav.scrolled             { height: 58px; }
    .nav-logo .logo-img      { height: 42px; }
    nav.scrolled .logo-img   { height: 34px; }
    .nav-links.open          { top: 70px; padding: 1rem; }
    .nav-cta                 { font-size: 0.76rem; padding: 0.42rem 0.9rem; }
    main                     { padding-top: 70px; }

    /* Secciones */
    .container               { padding: 0 1rem; }
    .section                 { padding: 2.5rem 0; }
    .section-header          { margin-bottom: 1.75rem; }
    .section-header h2       { font-size: 1.55rem; }
    .section-header p        { font-size: 0.95rem; }

    /* Página genérica */
    .page-hero               { padding: 2rem 0 1.5rem; }
    .page-hero h1            { font-size: 1.75rem; }
    .page-content            { font-size: 0.97rem; }

    /* Contacto / Quiénes somos */
    .contact-grid            { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-form            { padding: 1.5rem 1.25rem; }
    .about-grid              { grid-template-columns: 1fr; gap: 1.5rem; }
    .values-grid             { grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* Reservas */
    .reservas-hero           { padding: 2rem 0 1.25rem; }
    .reservas-container      { padding: 1.25rem 1rem; }
    .services-grid           { grid-template-columns: 1fr; }

    /* Footer */
    footer                   { padding: 2.5rem 0 1.25rem; }
    .footer-grid             { gap: 1.5rem; }
    .footer-bottom           { flex-direction: column; text-align: center; gap: 0.5rem; }
    .footer-brand p          { max-width: 100%; }

    /* Botones */
    .btn-lg                  { padding: 0.85rem 1.6rem; font-size: 0.93rem; }
    .btn-block               { width: 100%; }

    /* Breadcrumbs */
    .breadcrumbs             { font-size: 0.8rem; padding: 0.5rem 0; }
}

/* ═══════════════════════════════════════
   PÁGINA GENÉRICA (page.php)
   ═══════════════════════════════════════ */
.page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-top: 0.5rem;
}
.page-content {
    max-width: 860px;
    margin: 0 auto;
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 1.05rem;
}
.page-content h2,
.page-content h3 {
    font-family: var(--font-display);
    color: var(--navy);
    margin-top: 2rem;
}
.page-content img {
    max-width: 100%;
    border-radius: var(--radius);
}
