/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #257c73;
    --primary-dark: #1d5f58;
    --secondary-color: #489a8c;
    --secondary-dark: #3a7a6f;
    --accent-color: #be862f;
    --accent-dark: #9a6d26;
    --contrast-color: #911410;
    --contrast-dark: #700e0c;
    --text-color: #2c2c2c;
    --bg-light: #f3eee8;
    --white: #ffffff;
    --dark: #1a1a1a;
    --light-gray: #f8f8f8;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Tipografía minimalista */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

p {
    font-weight: 400;
    color: #666;
    letter-spacing: -0.01em;
}

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

/* Responsive container padding */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 5px 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar i {
    margin-right: 6px;
    font-size: 13px;
}

/* Header */
.main-header {
    background: var(--white);
    padding: 2px 0 1px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    flex: 0;
    text-align: left;
    order: 1;
    padding: 0;
    display: block;
}

.logo img {
    max-width: 192px;
    width: auto;
    height: auto;
    transition: opacity 0.2s ease;
    display: block;
}

.logo img:hover {
    opacity: 0.9;
}

.social-icons-left,
.social-icons-right {
    display: flex;
    gap: 0;
    order: 2;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: transparent;
    color: #c58524;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 22px;
}

.social-icon:hover {
    background: var(--bg-light);
    color: #000;
    border-color: #000;
}

/* Navigation */
.main-nav {
    background: #499789;
    padding: 12px 0;
    position: relative;
}

.main-nav .container {
    position: relative;
}

.main-nav.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: #499789;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    background: transparent;
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: var(--primary-color);
    border-bottom-color: transparent;
}

.nav-menu li.has-megamenu {
    position: static;
}

.nav-menu li.has-megamenu > a {
    position: relative;
}

.nav-menu li.has-megamenu > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-menu li.has-megamenu:hover > a i {
    transform: rotate(180deg);
}

/* Megamenu */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 2px solid var(--primary-color);
    padding: 30px 0;
}

.nav-menu li.has-megamenu:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.megamenu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.megamenu-column {
    flex: 1;
}

.megamenu-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.megamenu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-column ul li {
    margin-bottom: 12px;
}

.megamenu-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 8px 0;
    display: block;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
}

.megamenu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Menu CTA Button */
.nav-menu li.menu-cta {
    margin-left: auto;
}

.nav-menu li.menu-cta a {
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--dark);
}

.nav-menu li.menu-cta a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 5px 10px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .main-nav .container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 110px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero img,
.hero picture,
.hero video {
    max-width: 100%;
    height: auto;
}

/* Override inline styles for mobile */
@media (max-width: 768px) {
    .hero[style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 30, 0.66);
    z-index: 0;
}

.hero::before {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 6px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: none;
    color: #ffe9a5;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 22px;
    font-weight: 500;
    opacity: 1;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0.03em;
    text-align: left;
    color: var(--white);
}

.hero-description {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: left;
}

.hero-description p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    text-align-last: left;
}

.hero-description-highlight {
    font-weight: 600;
    color: #ffde9d;
    margin-bottom: 0;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid #ddd;
    background: transparent;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

/* Botón específico en hero */
.hero .btn-primary {
    background: #3e9585;
    color: var(--white);
    border-color: #3e9585;
    margin-top: 10px;
}

.hero .btn-primary:hover {
    background: var(--white);
    color: #3e9585;
    border-color: var(--white);
}


.btn-secondary {
    background: var(--dark);
    color: var(--white);
    border: 1px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--dark);
}

.btn-small {
    padding: 8px 16px;
    font-size: 11px;
}

/* Patologías Section */
.patologias-section {
    padding: 32px 0 30px 0;
    background: var(--white);
}

.patologias-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.patologias-section h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.patologias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.patologia-card {
    background: var(--white);
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.patologia-card::before {
    display: none;
}

.patologia-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.patologia-card:hover::before {
    display: none;
}

.patologia-card h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
}

.patologia-card p {
    color: #777;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 400;
}

.patologia-card .btn {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.patologia-img-wrapper {
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.patologia-img-wrapper .patologia-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    display: block;
}

/* Imágenes generales */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevenir desbordamiento de imágenes */
figure,
picture {
    max-width: 100%;
    display: block;
}

iframe,
video,
embed,
object {
    max-width: 100%;
    height: auto;
}

.btn-small {
    padding: 8px 16px;
    font-size: 11px;
}

/* Video Section */
.video-section {
    padding: 10px 0 20px 0;
    background: var(--white);
    width: 100%;
}

.video-wrapper {
    width: 100%;
    margin: 0;
    position: relative;
    max-width: 100%;
}

.video-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

/* Carrusel de Servicios */
.servicios-carousel-section {
    padding: 25px 0 60px 0;
    background: var(--white);
}

.servicios-title {
    text-align: left;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.servicios-intro {
    max-width: 1250px;
    margin: 0 auto 40px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    font-weight: 400;
    text-align: justify;
}

.servicios-intro p {
    margin-bottom: 14px;
}

.servicios-intro p:last-child {
    margin-bottom: 0;
}

/* Temas de interés - portada */
.temas-home-section {
    padding: 50px 0;
}

.temas-home-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.temas-home-header h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.temas-home-header p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.temas-home-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.temas-home-carousel {
    display: flex;
    gap: 32px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 10px 0;
}

.tema-home-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(15, 20, 30, 0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 320px;
    padding: 32px 28px;
}

.tema-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(15, 20, 30, 0.12);
}

.tema-home-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(62, 149, 133, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.tema-home-placeholder i {
    font-size: 34px;
    color: #2d6f63;
}

.tema-home-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.tema-home-content h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark);
    line-height: 1.4;
}

.tema-home-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #5a5a5a;
    margin: 0;
}

.tema-home-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3e9585;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.tema-home-link::after {
    content: '\f061';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.tema-home-link:hover::after {
    transform: translateX(4px);
}

.temas-home-footer {
    margin-top: 40px;
    text-align: center;
}

.temas-home-footer .btn {
    padding: 12px 28px;
    font-size: 0.85rem;
}

.temas-home-prev,
.temas-home-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2d6f63;
    box-shadow: 0 10px 24px rgba(15, 20, 30, 0.12);
    z-index: 2;
}

.temas-home-prev {
    left: -12px;
}

.temas-home-next {
    right: -12px;
}

.temas-home-prev:hover,
.temas-home-next:hover {
    background: #2d6f63;
    color: #fff;
}

.temas-home-prev.disabled,
.temas-home-next.disabled {
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-prev,
.carousel-next {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
    font-size: 18px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.servicios-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.servicios-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    width: max-content;
}

.servicio-card {
    width: min(280px, calc(100vw - 80px));
    flex-shrink: 0;
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.servicio-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.servicio-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.card-divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin-bottom: 20px;
}

.servicio-card p {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 400;
}

.card-link {
    color: #333;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-link:hover {
    color: var(--primary-color);
}

/* Galería Section */
.galeria-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.galeria-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.galeria-item:hover {
    transform: none;
    border-color: var(--primary-color);
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

/* Testimonios Section */
.testimonios-section {
    background: var(--white);
    padding: 60px 0;
}

.testimonios-section h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonio-card {
    background: var(--white);
    padding: 25px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.testimonio-card:hover {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.testimonio-rating {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.testimonio-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: justify;
}

.testimonio-content p {
    text-align: justify;
}

.testimonio-author {
    font-weight: 500;
    color: var(--dark);
    text-align: right;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Patologías Carousel */
.patologias-carousel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding: 15px 0;
}

.carousel-item {
    min-width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--primary-color);
}

/* Perfil Section */
.perfil-section {
    padding: 10px 0 60px;
    background: var(--bg-light);
}

.perfil-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(243, 238, 232, 0.85);
    z-index: 0;
}

.perfil-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perfil-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.perfil-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: justify;
}

/* Testimonios Section */
.testimonios-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.testimonios-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 1;
    color: var(--white);
}

.footer-section p i {
    color: var(--white);
}

.footer-logo-section {
    margin-top: 20px;
}

.footer-logo-section img {
    max-width: 200px;
    height: auto;
}

.footer-social {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--white);
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    border: none;
    background: transparent;
}

.footer-social a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: none;
    background: transparent;
}

.form-description {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-style: italic;
}

.footer-bottom-bar {
    background: #0a0a0a;
    padding: 15px 20px 10px 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-menu {
    text-align: center;
    margin-bottom: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.9;
    transition: all 0.2s ease;
    padding: 0 10px;
}

.footer-bottom-menu a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom-menu .separator {
    color: rgba(255,255,255,0.3);
    margin: 0 5px;
}

.footer-copyright {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
    color: var(--white);
}

.footer-copyright p a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-copyright p a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.admin-link {
    font-size: 11px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.admin-link:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.admin-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    display: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-shadow: none;
    text-transform: uppercase;
}

.page-header p {
    font-size: 0.9rem;
    opacity: 1;
    font-weight: 400;
    color: var(--white);
}

/* Doctor Info Section */
.doctor-info-section {
    padding: 60px 0;
}

.doctor-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.doctor-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
    height: auto;
    object-fit: contain;
}

.doctor-text h2 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.doctor-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* Professional Background */
.professional-bg {
    background: #f3eee8;
    padding: 60px 0;
    position: relative;
}

.professional-bg .patologias-overlay {
    display: none;
}

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

.professional-item h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-item ul {
    list-style: none;
}

.professional-item li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.professional-item li i {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Patologias Main Section */
.patologias-main-section {
    padding: 60px 0;
    position: relative;
    background: var(--white);
}

.patologias-main-section .patologias-overlay {
    display: none;
}

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

.patologia-type-card {
    background: var(--white);
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.patologia-type-card:hover {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.patologia-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: none;
}

.patologia-type-card:hover .patologia-icon {
    transform: none;
}

.patologia-type-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.patologia-type-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.patologia-type-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 20px auto;
    border-radius: 0;
}

.specific-patologias {
    background: #f3eee8;
    padding: 60px 0;
    position: relative;
}

.specific-patologias .patologias-overlay {
    display: none;
}

.specific-patologias h2 {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.patologia-img {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Topics Section */
.topics-section {
    padding: 60px 0;
}

.topics-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.topics-intro p {
    text-align: justify;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.topic-card {
    background: var(--white);
    padding: 25px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.topic-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: none;
}

.topic-card:hover .topic-icon {
    transform: none;
}

.topic-thumb {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f9f9;
}

.topic-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.topic-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.topic-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.newsletter-section h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-section p {
    margin-bottom: 25px;
    font-size: 0.9rem;
    opacity: 1;
    color: var(--white);
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 25px auto 0;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0;
    font-size: 14px;
    box-shadow: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

/* Contact Info Section */
.contact-info-section {
    padding: 60px 0;
}

.contact-info-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-info-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Contact Form Section */
.contact-form-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map Section */
.map-section {
    padding: 30px 0;
}

.map-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.map-address i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.map-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.map-wrapper {
    margin-top: 25px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
    width: 100%;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* Social Contact Section */
.social-contact-section {
    background: var(--white);
    padding: 60px 0;
}

.social-contact-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.social-contact-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 25px;
    background: var(--white);
    border-radius: 0;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.social-contact-item:hover {
    transform: none;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.social-contact-item i {
    font-size: 2rem;
}

.social-contact-item span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final {
    background: #2a2a2a;
    background-image: url('/assets/images/cirugia245.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .cta-final {
        background-attachment: scroll;
    }
}

.cta-final::before {
    display: none;
}

.cta-bg-image-sobre-mi {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/cirugia245.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

@media (max-width: 768px) {
    .cta-bg-image-sobre-mi {
        background-attachment: scroll;
    }
}

.cta-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 42, 0.85);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Botón específico en CTA section (no en cta-final) */
.cta-section:not(.cta-final) .btn-primary {
    background: #499789;
    color: var(--white);
    border-color: #499789;
}

.cta-section:not(.cta-final) .btn-primary:hover {
    background: #3a7a6f;
    color: var(--white);
    border-color: #3a7a6f;
}

.cta-section h2,
.cta-section h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: none;
    letter-spacing: -0.2px;
    color: var(--white);
}

.cta-section p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: justify;
    color: var(--white);
}

/* CTA Final centrado */
.cta-final {
    text-align: center;
}

.cta-final p {
    text-align: center;
}

/* Additional Styles Inspired by Instituto Clavel */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Card Hover Effects */
.card-hover-effect {
    transition: all 0.2s ease;
}

.card-hover-effect:hover {
    transform: none;
    border-color: var(--primary-color);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spacing Utilities */
.section-spacing {
    padding: 60px 0;
}

.section-spacing-large {
    padding: 80px 0;
}

/* Professional Info Cards */
.professional-card {
    background: var(--white);
    padding: 25px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.professional-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: none;
    border-color: var(--primary-color);
}

/* Icon Styles */
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: none;
    border: 1px solid var(--primary-color);
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--white);
}

/* Responsive - Tablet y Desktop Pequeño */
@media (max-width: 1024px) {
    .hero {
        min-height: 560px;
        padding: 90px 0 65px;
    }

    .hero h1 {
        font-size: 2.1rem;
        margin-bottom: 6px;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-description {
        max-width: 680px;
        margin-bottom: 26px;
    }

    .hero-description p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .patologias-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .doctor-info-grid {
        gap: 30px;
    }

    .professional-content {
        grid-template-columns: 1fr;
    }

    .patologia-type-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .temas-home-section {
        padding: 50px 0;
    }

    .temas-home-header {
        margin-bottom: 32px;
    }

    .temas-home-carousel {
        gap: 20px;
    }

    .tema-home-card {
        flex: 0 0 300px;
    }

}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }

    .top-bar .container {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .top-bar-left,
    .top-bar-right {
        display: flex;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .top-bar a {
        margin-right: 0;
        font-size: 11px;
        white-space: nowrap;
    }

    .top-bar a span {
        display: inline;
    }

    .main-header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .logo {
        text-align: center;
    }

    .logo img {
        max-width: 160px;
        margin: 0 auto;
    }

    .social-icons-right {
        justify-content: center;
    }

    .main-nav {
        padding: 12px 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        padding: 20px;
        border-top: 2px solid var(--primary-color);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .main-nav .container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .footer-logo-section {
        text-align: center;
        margin-top: 15px;
    }

    .footer-logo-section img {
        margin: 0 auto;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: var(--white);
        font-size: 24px;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 15px 10px;
        margin: 0;
    }

    .mobile-menu-toggle:hover {
        opacity: 0.8;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px;
        color: var(--dark);
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .nav-menu li.has-megamenu {
        position: relative;
    }

    .megamenu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 15px 0;
        border-top: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 15px;
        margin-top: 10px;
        background: var(--bg-light);
    }

    .megamenu-content {
        padding: 0;
        flex-direction: column;
    }

    .megamenu-column {
        width: 100%;
    }

    .megamenu-column h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .megamenu-column ul li a {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .nav-menu li.menu-cta {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .nav-menu li.menu-cta a {
        display: block;
        text-align: center;
        width: 100%;
    }

    .hero {
        min-height: 460px;
        padding: 70px 0 50px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 6px;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 18px;
        text-align: center;
        line-height: 1.6;
    }

    .hero-description {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .hero-description p {
        font-size: 0.9rem;
        margin-bottom: 12px;
        text-align: left;
        text-align-last: left;
    }



    .patologias-section,
    .video-section,
    .servicios-carousel-section,
    .galeria-section,
    .testimonios-section,
    .perfil-section {
        padding: 30px 0;
    }

    .servicios-carousel-section {
        padding: 34px 0 40px 0;
    }

    .patologias-section {
        padding: 44px 0 30px 0;
    }

    .video-section {
        padding: 10px 0 20px 0;
    }

    .servicios-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .servicio-card {
        width: min(260px, calc(100vw - 80px));
    }

    .servicios-intro {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: justify;
        text-align-last: center;
    }

    .patologias-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .galeria-item img {
        height: 200px;
    }

    .patologias-section h2,
    .page-header h1 {
        font-size: 1.5rem;
    }

    .testimonios-section h2 {
        font-size: 1.3rem;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 50px 0;
        background-attachment: scroll;
    }

    .cta-section h2,
    .cta-section h3 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    .doctor-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .doctor-image {
        text-align: center;
    }

    .doctor-image img {
        margin: 0 auto;
        max-width: 260px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
        min-width: 100%;
    }

    .social-contact-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .professional-content {
        grid-template-columns: 1fr;
    }

    .patologia-type-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding: 50px 0;
    }

    .faq-section h2 {
        font-size: 1.6rem;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

/* Responsive - Móvil */
@media (max-width: 480px) {
    .top-bar {
        font-size: 10px;
        padding: 6px 0;
    }

    .top-bar .container {
        gap: 10px;
        padding: 0 10px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 10px;
    }

    .top-bar a {
        margin-right: 0;
        font-size: 10px;
        white-space: nowrap;
    }

    .top-bar a span {
        display: none;
    }

    .top-bar a i {
        font-size: 12px;
        margin-right: 0;
    }

    .logo img {
        max-width: 144px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero {
        min-height: 360px;
        padding: 50px 0 35px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.22;
        margin-bottom: 6px;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 14px;
        text-align: center;
    }

    .hero-description {
        margin-bottom: 20px;
        text-align: left;
    }

    .hero-description p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 12px;
        text-align: left;
        text-align-last: left;
    }



    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .patologias-section,
    .video-section,
    .servicios-carousel-section,
    .galeria-section,
    .testimonios-section,
    .perfil-section,
    .doctor-info-section {
        padding: 20px 0;
    }

    .servicios-carousel-section {
        padding: 26px 0 32px 0;
    }

    .video-wrapper {
        padding: 0;
        width: 100%;
        overflow: hidden;
    }

    .video-player {
        width: 100%;
        height: auto;
        display: block;
    }

    .patologias-section {
        padding: 30px 0 20px 0;
    }

    .servicios-carousel-section {
        padding: 10px 0 40px 0;
    }

    .servicios-carousel-wrapper {
        padding: 0 10px;
    }

    .servicios-carousel {
        gap: 14px;
    }

    .servicios-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .servicios-intro {
        font-size: 0.92rem;
        margin-bottom: 30px;
        text-align: justify;
        text-align-last: center;
        width: 100%;
    }

    .servicio-card {
        width: calc(100vw - 60px);
        max-width: 320px;
        padding: 24px;
    }

    .carousel-controls {
        margin-bottom: 20px;
    }

    .patologias-grid,
    .testimonios-grid,
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .galeria-item img {
        height: 150px;
    }

    .patologia-card,
    .testimonio-card,
    .topic-card {
        padding: 20px;
    }

    .patologias-section h2,
    .page-header h1,
    .section-title {
        font-size: 1.3rem;
    }

    .testimonios-section h2 {
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2,
    .cta-section h3 {
        font-size: 1.2rem;
    }

    .cta-section p {
        font-size: 0.85rem;
    }

    .page-header {
        padding: 30px 0 20px;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.2rem;
    }

    .faq-section {
        padding: 40px 0;
    }

    .faq-section h2 {
        font-size: 1.4rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 15px;
    }

    .faq-question {
        padding: 20px 0;
    }

    .map-wrapper iframe {
        height: 250px;
    }

    .footer-bottom-menu {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom-menu a {
        display: block;
        padding: 5px 0;
    }

    .footer-bottom-menu .separator {
        display: none;
    }

    .mobile-menu-toggle {
        font-size: 20px;
        padding: 18px 10px;
    }
}

/* Contact Popup */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.contact-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.popup-content {
    position: relative;
    background: #a8d5e2;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    border-radius: 0;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: var(--text-color);
}

.popup-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 40px 30px 30px;
    gap: 30px;
}

.popup-image {
    width: 30%;
    flex-shrink: 0;
    text-align: center;
}

.popup-image img {
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.popup-text {
    width: 70%;
    flex: 1;
    text-align: left;
}

.popup-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-text > p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.popup-contact {
    margin: 20px 0;
}

.popup-contact p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.popup-contact p i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.popup-contact p strong {
    color: var(--dark);
    font-weight: 600;
}

.popup-btn {
    display: block;
    text-align: center;
    margin-top: 25px;
    width: 100%;
}

@media (max-width: 767px) {
    .popup-body {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px 20px;
    }
    
    .popup-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .popup-text {
        width: 100%;
        text-align: center;
    }

    .popup-text h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .popup-text > p {
        text-align: justify;
    }

    .popup-contact {
        text-align: left;
    }
    
    .popup-content {
        max-width: 95%;
        width: 95%;
        margin: 10px;
    }

    .popup-close {
        top: 5px;
        right: 10px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .popup-body {
        padding: 25px 15px 15px;
    }

    .popup-text h2 {
        font-size: 1.1rem;
    }

    .popup-text > p {
        font-size: 0.9rem;
    }

    .popup-contact p {
        font-size: 0.85rem;
    }

    .popup-content {
        max-width: 98%;
        width: 98%;
    }
}

/* Topic Detail Styles */
.topic-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.topic-featured-image {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.topic-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.topic-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.topic-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 12px;
}

.topic-detail-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

.topic-detail-content ul,
.topic-detail-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.topic-detail-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-color);
}

.topic-detail-content strong {
    color: var(--dark);
    font-weight: 600;
}

.topic-media-gallery {
    margin-top: 45px;
}

.topic-media-gallery h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.topic-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.topic-media-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 20, 30, 0.08);
    background: var(--white);
}

.topic-media-card img,
.topic-media-card video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.topic-media-card video {
    max-height: 320px;
}

.topic-media-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.topic-media-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.topic-media-document {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
}

.topic-media-document i {
    font-size: 40px;
    color: #d9534f;
}

.topic-media-document span {
    font-weight: 600;
    color: var(--dark);
}

.topic-media-document .btn {
    padding: 10px 18px;
}


.topic-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .topic-actions {
        flex-direction: column;
        width: 100%;
    }

    .topic-actions .btn {
        width: 100%;
        text-align: center;
    }

    .topic-featured-image {
        margin-bottom: 30px;
    }

    .topic-detail-content h2 {
        font-size: 1.4rem;
    }

    .topic-detail-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .topic-featured-image {
        margin-bottom: 20px;
    }

    .topic-detail-content h2 {
        font-size: 1.2rem;
    }

    .topic-detail-content h3 {
        font-size: 1.1rem;
    }

    .topic-detail-content p {
        font-size: 0.9rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.faq-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.faq-intro p {
    text-align: justify;
}

.faq-accordion {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 0 25px 0;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
    text-align: justify;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .temas-home-section {
        padding: 40px 0;
    }

    .temas-home-carousel {
        gap: 16px;
    }

    .tema-home-card {
        flex: 0 0 calc(100% - 10px);
    }

    .temas-home-prev,
    .temas-home-next {
        display: none;
    }
}

/* Responsive - Móvil */

