/*
Theme Name:   Kadence Child - Dr. Alan Rodriguez
Description:  Tema hijo optimizado basado en Kadence, personalizado para la clínica del Dr. Alan Rodríguez.
Author:       ROCA MKTD
Template:     kadence
Version:      1.1.1
Text Domain:  kadence-child
*/

:root {
    /* Design Tokens - Identidad Visual */
    --logo-teal: #16a19a;
    --logo-teal-hover: #117d78;
    --logo-dark: #2c3e50;
    --logo-teal-glow: rgba(22, 161, 154, 0.3);
    --gray-bg: #f4f7f6;
    --white: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #55606e;

    /* Tipografías */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Escala de Spacing */
    --spacing-3xs: 5px;
    --spacing-2xs: 10px;
    --spacing-xs: 15px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 50px;
    --spacing-2xl: 60px;
    --spacing-xxl: 80px;

    /* Layout */
    --heading-line-height: 1.15;
    --body-line-height: 1.6;
    --section-padding: var(--spacing-xxl) 0;
    --section-padding-mobile: var(--spacing-2xl) 0;

    /* Elementos UI (Radios, Sombras, Transiciones) */
    --transition-speed: 0.3s ease-in-out;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-color: rgba(0, 0, 0, 0.08);

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ==========================================================================
   RESET DE KADENCE (TEMA PADRE)
   ========================================================================== */
/* Eliminar los espacios y paddings automáticos que Kadence inyecta alrededor del contenido principal */
#primary.content-area,
.site-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   ESTILOS GENERALES
   ========================================================================== */
::selection {
    background-color: var(--logo-teal);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--logo-teal);
    color: var(--white);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--logo-dark);
    line-height: 1.1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--logo-teal);
    color: var(--white);
    box-shadow: 0 4px 15px var(--logo-teal-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--logo-teal-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--logo-teal-glow);
    color: var(--white);
    outline: 2px solid var(--logo-teal);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--logo-teal);
    border: 2px solid var(--logo-teal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--logo-teal);
    color: var(--white);
    outline: 2px solid var(--logo-teal);
    outline-offset: 2px;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--gray-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    display: inline-block;
    color: var(--logo-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--logo-teal);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: absolute;
    top: 0;
    right: -100px;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* Floating Elements for Premium Feel */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--logo-teal-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
    border-radius: 50%;
}

/* Highlights Bar */
.highlights {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    box-shadow: var(--shadow-medium);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.highlight-card {
    text-align: center;
    padding: 1rem;
    transition: transform var(--transition-speed);
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-bg);
    color: var(--logo-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Common */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header .subtitle {
    color: var(--logo-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: block;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-dark);
    transform: translateY(-5px);
}

.service-img {
    height: 320px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed);
    position: relative;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.placeholder-rinoplastia {
    background-image: url('https://images.unsplash.com/photo-1596755389378-c31d21fd1273?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.placeholder-mamas {
    background-image: url('https://images.unsplash.com/photo-1615286595568-d7310e64b281?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.placeholder-facial {
    background-image: url('https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.placeholder-corporal {
    background-image: url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-link {
    color: var(--logo-teal);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-speed);
    margin-top: auto;
}

.btn-link:hover {
    color: var(--logo-teal-hover);
}

/* Non Surgical Section */
.non-surgical {
    padding: 6rem 0;
    background-color: var(--white);
}

.non-surgical-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.non-surgical-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.non-surgical-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.check-list li strong {
    color: var(--logo-teal);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--logo-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

.non-surgical-image {
    height: 450px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-dark);
}

.placeholder-medicina-estetica {
    background-image: url('https://images.unsplash.com/photo-1612349317150-e413f6a5b16d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
}

/* UTILITY CLASSES */
.section-padding {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--gray-bg);
}

.bg-dark {
    background-color: var(--logo-dark);
}

.bg-primary {
    background-color: var(--logo-teal);
}

.bg-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.color-primary {
    color: var(--logo-teal) !important;
}

.color-secondary {
    color: var(--logo-teal-hover) !important;
}

.color-white {
    color: var(--white) !important;
}

.opacity-90 {
    opacity: 0.9;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Margins */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.grid-col-span-2 {
    grid-column: span 2;
}

/* Components */
.card-simple {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-simple h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-simple h4 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.border-light {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--logo-teal);
    box-shadow: var(--shadow-light);
}

.faq-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

/* Premium Split Card Layout */
.split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(44, 62, 80, 0.1);
    overflow: hidden;
    margin-bottom: 6rem;
    border: 1px solid rgba(22, 161, 154, 0.1);
}

.split-card.reverse .split-image-container {
    order: 2;
}

.split-image-container {
    position: relative;
    height: 100%;
    min-height: 500px;
    background-color: #f1f5f9;
}

.split-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 161, 154, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-dark);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
    border: 2px dashed rgba(44, 62, 80, 0.2);
    border-radius: 24px;
    box-sizing: border-box;
}

.split-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.split-card .card-simple {
    background: #f8fafc;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.split-card .card-simple h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.split-card .card-simple p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== HEADER ===== */

/* Barra superior */
.top-bar {
    background-color: var(--logo-teal);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    opacity: 0.95;
    transition: opacity var(--transition-speed);
}

.top-bar-link:hover {
    opacity: 1;
    color: var(--white);
}

.top-bar-social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.top-bar-social a {
    color: var(--white);
    opacity: 0.85;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    display: flex;
}

.top-bar-social a:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Header principal */
.main-header {
    background-color: var(--white);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-speed), padding var(--transition-speed);
    position: relative;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-initials {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--logo-teal);
    line-height: 1;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--logo-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--logo-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Navegación desktop */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu-desktop {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu-desktop>.menu-item>a {
    display: block;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--logo-dark);
    transition: color var(--transition-speed);
    position: relative;
}

.nav-menu-desktop>.menu-item>a:hover,
.nav-menu-desktop>.menu-item.current-menu-item>a {
    color: var(--logo-teal);
}

.nav-menu-desktop>.menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--logo-teal);
    transition: transform var(--transition-speed);
}

.nav-menu-desktop>.menu-item>a:hover::after,
.nav-menu-desktop>.menu-item.current-menu-item>a::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdowns */
.nav-menu-desktop .menu-item-has-children {
    position: relative;
}

.nav-menu-desktop .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 0.5rem 0;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-speed);
    list-style: none;
    z-index: 100;
}

.nav-menu-desktop .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-submenús (tercer nivel) */
.nav-menu-desktop .sub-menu .menu-item-has-children {
    position: relative;
}

.nav-menu-desktop .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(8px);
}

.nav-menu-desktop .sub-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-menu-desktop .sub-menu a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: background var(--transition-speed), color var(--transition-speed);
}

.nav-menu-desktop .sub-menu a:hover {
    background-color: var(--logo-teal-glow);
    color: var(--logo-teal);
}

/* CTA del header */
.header-cta {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* Sticky header */
.site-header.scrolled .top-bar {
    display: none;
}

.site-header.scrolled .main-header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

/* Hamburguesa */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--logo-teal);
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú móvil overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

body.menu-open {
    overflow: hidden;
}

.nav-menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu-mobile>.menu-item>a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--logo-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-menu-mobile>.menu-item>a:hover,
.nav-menu-mobile>.menu-item.current-menu-item>a,
.nav-menu-mobile>.menu-item:hover>a,
.nav-menu-mobile>.menu-item>a:focus-visible {
    color: var(--logo-teal);
    background-color: transparent;
}

.nav-menu-mobile .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: transparent;
}

.nav-menu-mobile .sub-menu.open {
    max-height: 2000px;
    overflow: visible;
}

.nav-menu-mobile .sub-menu a {
    display: block;
    padding: 0.7rem 0 0.7rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    background-color: transparent;
}

.nav-menu-mobile .sub-menu a:hover,
.nav-menu-mobile .sub-menu a:focus-visible {
    color: var(--logo-teal);
    background-color: transparent;
}

.nav-menu-mobile .sub-menu .sub-menu a {
    padding-left: 2.5rem;
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    position: absolute;
    right: 0;
    top: 0.5rem;
    transition: transform var(--transition-speed);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-toggle:focus-visible {
    outline: 2px solid var(--logo-teal);
    outline-offset: -2px;
    border-radius: var(--border-radius-sm);
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

.nav-menu-mobile .menu-item-has-children {
    position: relative;
}

.mobile-menu-cta {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
    margin-top: auto;
}

.footer-main {
    background-color: var(--logo-dark);
    color: var(--white);
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.footer-logo .logo-initials {
    color: var(--logo-teal);
}

.footer-logo .logo-text strong {
    color: var(--white);
}

.footer-logo .logo-text small {
    color: rgba(255, 255, 255, 0.6);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.footer-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: color var(--transition-speed);
}

.footer-contact-list a:hover {
    color: var(--logo-teal);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: background var(--transition-speed), transform var(--transition-speed);
}

.footer-social a:hover {
    background: var(--logo-teal);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--logo-teal);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition-speed), padding-left var(--transition-speed);
    display: block;
}

.footer-links a:hover {
    color: var(--logo-teal);
    padding-left: 5px;
}

/* Barra inferior del footer */
.footer-bottom {
    background-color: #1a2a38;
    padding: 1.2rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: color var(--transition-speed);
}

.footer-legal-links a:hover {
    color: var(--logo-teal);
}

.footer-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-credit a {
    color: var(--logo-teal);
    transition: opacity var(--transition-speed);
}

.footer-credit a:hover {
    opacity: 0.8;
}

/* CTA button in footer col 1 */
.footer-cta-btn {
    margin-top: 1.5rem;
    display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {

    /* Header responsive */
    .main-navigation,
    .header-cta {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
        margin-left: auto;
    }

    .mobile-menu.open {
        display: block !important;
    }

    .top-bar-contact span {
        display: none;
    }

    .top-bar-contact svg {
        width: 18px;
        height: 18px;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }

    .split-card,
    .split-card.reverse {
        grid-template-columns: 1fr;
    }

    .split-card.reverse .split-image-container {
        order: -1;
    }

    .split-image-container {
        min-height: 400px;
    }

    .split-content {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image {
        opacity: 0.4;
        right: -50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo-text strong {
        font-size: 0.9rem;
    }
    
    .logo-text small {
        font-size: 0.6rem;
    }
    
    .logo-initials {
        font-size: 1.8rem;
    }

    .header-inner {
        gap: 1rem;
    }

    /* Top bar responsive */
    .top-bar {
        display: none; /* Mejor ocultar la top bar entera en móviles pequeños para ahorrar espacio */
    }

    .top-bar-inner {
        justify-content: center;
        gap: 1rem;
    }

    .top-bar-contact {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .top-bar-social {
        display: none;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col:first-child {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .highlights {
        grid-template-columns: 1fr;
        margin-top: 2rem; /* Separar la caja de highlights del hero en mobile */
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-img {
        height: 250px;
    }

    .non-surgical-wrapper {
        grid-template-columns: 1fr;
    }

    .non-surgical-image {
        grid-row: 1;
        height: 350px;
        margin-bottom: 2rem;
    }

    .section-header h2,
    .non-surgical-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 3rem 0;
    }

    .split-card {
        margin-bottom: 3rem;
    }

    .hero {
        min-height: 500px;
        padding-top: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        padding: 1rem;
    }

    .section-header h2,
    .non-surgical-content h2 {
        font-size: 2.2rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content h3 {
        font-size: 1.6rem;
    }

    .highlight-card,
    .card-simple {
        padding: 1.5rem;
    }

    .non-surgical-image {
        height: 250px;
    }
}

/* ==========================================================================
   PAGE-SPECIFIC OVERRIDES
   ========================================================================== */

/* Hero: page-cirugias.php */
.page-template-cirugias .hero-title { font-size: 3.5rem; margin-bottom: 1rem; }
.page-template-cirugias .hero-subtitle { display: block; margin-bottom: 2rem; font-size: 1.2rem; letter-spacing: 2px; }
.page-template-cirugias .hero-description { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* Highlight icon variants */
.highlight-icon--light { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.highlight-icon--sm { width: 40px; height: 40px; font-size: 1.2rem; margin-left: 0; margin-bottom: 1rem; }

/* Utility text helpers */
.text-lg { font-size: 1.1rem; }
.teaser-heading { font-size: 1.5rem; }

/* Contact cards (CTA section) */
.contact-card-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.contact-card-premium:hover {
    background: var(--logo-teal-glow);
    border-color: var(--logo-teal);
}

.contact-card-premium .contact-icon-circle {
    background: var(--logo-teal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-text {
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-placeholder {
    height: 150px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 12px;
}

.contact-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.testimonials-placeholder {
    height: 200px;
    position: relative;
}

/* Testimonial cards */
.testimonial-stars {
    display: flex;
    gap: 3px;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--logo-dark);
    margin-bottom: 0.2rem;
}

.testimonial-source {
    font-size: 0.75rem;
    color: var(--logo-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.check-list--no-margin {
    margin-bottom: 0;
}

/* Logo image */
.site-logo-img {
    height: auto;
    max-width: 200px;
}

.footer-logo-img {
    height: auto;
    max-width: 200px;
}

/* Imagen destacada de página */
.page-featured-img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

/* Footer address */
.footer-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Footer map */
.footer-map {
    margin-bottom: 0.5rem;
}

.footer-map iframe {
    border: 0;
    border-radius: 8px;
    filter: grayscale(20%);
}

/* ==========================================================================
   Casos de Éxito (page-casos-exito.php & single-caso-exito.php)
   ========================================================================== */

.caso-imagen {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.caso-imagen img {
    transition: transform var(--transition-speed);
}

.caso-contenido h2 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 2rem;
    color: var(--logo-teal);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.caso-contenido h2:first-child {
    margin-top: 0;
}

.caso-contenido h3 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.5rem;
    color: var(--logo-dark);
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.caso-contenido ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.caso-contenido ul li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.caso-contenido strong {
    color: var(--logo-dark);
}

.caso-contenido em {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-legal-links {
        justify-content: center;
    }

    .caso-contenido h2 {
        font-size: 1.6rem;
    }

    .caso-contenido h3 {
        font-size: 1.25rem;
    }
}
