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

:root {
    --primary-orange: #FF8C42;
    --dark-orange: #E67A32;
    --light-orange: #FFB380;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #E0E0E0;
    --dark-gray: #666666;
    --text-dark: #2C3E50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --bg-color: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --text-color: #2C3E50;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-color: #f5f5f5;
    --white: #2d2d2d;
    --light-gray: #1a1a1a;
    --gray: #3d3d3d;
    --dark-gray: #cccccc;
    --text-dark: #f5f5f5;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: auto;
    max-width: 250px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--dark-orange));
    z-index: 9998;
    transition: width 0.1s ease;
}

/* Section Indicators */
.section-indicators {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-dot.active {
    background: var(--primary-orange);
    transform: scale(1.3);
}

.section-dot:hover {
    background: var(--primary-orange);
    transform: scale(1.5);
}

.section-dot::before {
    content: attr(data-section);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
}

.section-dot:hover::before {
    opacity: 1;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    margin: 0;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

/* Contact Form Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.contact-modal-close:hover {
    color: var(--primary-orange);
}

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

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Icon Animations */
.animated-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.animated-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.425rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--white) 100%);
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-features {
    margin-bottom: 2rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

/* Hero Promo Card */
.hero-promo-card {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 140, 66, 0.4);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 140, 66, 0.6);
    }
}

.promo-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--white);
    color: var(--primary-orange);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}

.promo-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.promo-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #833AB4, #E1306C, #FD1D1D);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.6);
}

.tooth-icon {
    font-size: 1.5rem;
}

.hero-image {
    position: relative;
    width: 400px;
    height: 400px;
}

.tooth-decoration {
    position: absolute;
    width: 300px;
    height: 350px;
    background-image: url('attached_assets/dental-hero.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: toothTilt 3s ease-in-out infinite;
}

@keyframes toothTilt {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* NOSOTROS Section */
.nosotros {
    padding: 80px 20px;
    background: var(--white);
    overflow-x: hidden;
}

.nosotros-content {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: hidden;
}

.nosotros-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 3rem;
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
}

.intro-text-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.nosotros-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin: 2rem 0;
    padding: 0 50px;
    max-width: 100%;
}

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

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--dark-orange);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    transform: translateY(-50%);
    background: var(--primary-orange);
}

.valor-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.valor-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.valor-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.nosotros-clinica {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.clinica-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.clinica-info p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.clinica-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    padding: 12px;
    background: var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-dark);
}

.clinica-image-wrapper {
    position: relative;
}

.clinica-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.nosotros-team h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.team-grid {
    display: flex;
    gap: 25px;
}

.team-member {
    text-align: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: none;
    min-height: auto;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    flex: 0 0 calc(25% - 19px);
    max-width: calc(25% - 19px);
}

.team-member.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: none;
    border-color: transparent;
}

.team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Ajustes específicos para ciertas fotos del personal */
.team-member:nth-child(1) .team-photo img {
    /* Dra. Cid - ajuste leve hacia arriba */
    object-position: center 30%;
}

.team-member:nth-child(6) .team-photo img {
    /* Tahely Labarca - 100px más arriba */
    object-position: center top;
}

.team-member:nth-child(7) .team-photo img {
    /* Claudia Gatica - imagen desde arriba a abajo */
    object-position: center top;
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: none;
}

.team-role {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1rem;
    display: none;
}

/* SERVICIOS Section */
.servicios {
    padding: 80px 20px;
    background: var(--light-gray);
    overflow-x: hidden;
}

.servicios-grid {
    display: flex;
    gap: 25px;
}

.servicio-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 3px solid transparent;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    flex: 0 0 calc(33.333% - 17px);
    max-width: calc(33.333% - 17px);
}

.servicio-card.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.3);
    border-color: var(--primary-orange);
}

.servicio-card.highlight {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: var(--white);
}

.servicio-card.highlight .promocion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
}

.servicio-img {
    width: 100%;
    height: 360px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.servicio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.servicio-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.servicio-card.highlight p {
    color: var(--white);
}

.promociones-section {
    margin-top: 3rem;
}

.promociones-section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.promociones-placeholder {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.promocion-destacada {
    background: linear-gradient(135deg, var(--white), var(--light-gray));
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-orange);
    position: relative;
    overflow: hidden;
}

.promocion-destacada::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.promocion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
}

.promocion-destacada h4 {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.promocion-desc {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promocion-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.promo-tag {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-orange);
}

.promocion-destacada .btn-primary {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 16px 40px;
}

@media (max-width: 768px) {
    .promocion-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .promocion-destacada {
        padding: 30px 20px;
    }
    
    .promocion-destacada h4 {
        font-size: 1.5rem;
    }
}

/* CONVENIOS Section */
.convenios {
    padding: 80px 20px;
    background: var(--white);
    overflow-x: hidden;
}

.convenios-content {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: hidden;
}

.convenios-info .intro-text {
    margin-bottom: 2rem;
}

.convenios-info h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.beneficios-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.beneficios-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 1.05rem;
}

.beneficios-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.3rem;
}

.convenios-empresas {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 20px;
    margin: 2rem 0;
}

.empresas-logos {
    text-align: center;
    padding: 30px;
}

.convenio-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.convenios-contacto {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-top: 2rem;
}

.convenios-contacto h3 {
    color: var(--white);
}

.convenios-contacto p {
    margin-bottom: 1.5rem;
}

.convenios-cta {
    margin-top: 1.5rem;
}

.convenios-cta p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.convenios-cta a {
    color: var(--white);
    text-decoration: underline;
}

/* CONTACTO Section */
.contacto {
    padding: 80px 20px;
    background: var(--light-gray);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacto-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s;
}

.contacto-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.contacto-icon {
    font-size: 2rem;
    color: var(--primary-orange);
    min-width: 40px;
}

.contacto-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contacto-item p {
    color: var(--dark-gray);
    margin-bottom: 0.3rem;
}

.contacto-item a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.contacto-mapa {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--gray);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-contact p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }

    .nosotros, .servicios, .convenios, .contacto {
        padding: 60px 15px;
        overflow-x: hidden;
    }

    .nosotros-content, .convenios-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .section-indicators {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        display: none;
    }
    
    .hero-promo-card {
        padding: 20px;
        margin-bottom: 1.5rem;
    }
    
    .promo-content h3 {
        font-size: 1.2rem;
    }
    
    .promo-content p {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-instagram {
        width: 100%;
        justify-content: center;
    }

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

    .section-title {
        font-size: 2rem;
    }
    
    .nosotros-clinica {
        grid-template-columns: 1fr;
    }
    
    .nosotros-intro {
        grid-template-columns: 1fr;
    }
    
    .nosotros-valores {
        display: flex;
        gap: 25px;
        overflow: visible;
    }

    .valor-card {
        flex: 0 0 100%;
        max-width: 90vw;
        margin: 0 auto;
        box-sizing: border-box;
        position: absolute;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .valor-card.active {
        opacity: 1;
        pointer-events: auto;
        position: relative;
    }

    /* Mobile Carousel - 1 item at a time */
    .carousel-container {
        padding: 0;
        margin: 2rem 0;
        overflow: visible;
    }

    .carousel-wrapper {
        overflow: visible;
        padding: 0 5vw;
    }

    /* Ocultar flechas en móvil */
    .carousel-btn {
        display: none;
    }

    /* Mostrar solo imágenes del equipo sin tarjetas - una a la vez, centrada */
    .team-photo {
        width: 80vw;
        max-width: 320px;
        height: 80vw;
        max-height: 320px;
        margin: 0 auto;
    }

    .team-member {
        min-height: auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        max-width: 90vw;
        flex: 0 0 100%;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .team-member:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }

    .team-member {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .team-photo {
        flex-shrink: 0;
        width: 259px;
        height: 259px;
        max-width: 259px;
        max-height: 259px;
    }

    .team-member h4 {
        display: block;
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .team-member .team-role {
        display: block;
        font-size: 0.9rem;
    }

    .team-grid {
        min-height: 150px;
    }

    /* Ajustar tarjetas de servicios - una completa a la vez, centrada */
    .servicio-card {
        padding: 20px 15px;
        max-width: 90vw;
        flex: 0 0 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .servicios-grid {
        min-height: 500px;
    }

    .servicio-img {
        height: 40vh;
        max-height: 320px;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Ajustar imagen de convenio superpuesta y centrada */
    .empresas-logos {
        padding: 20px 0;
        overflow: visible;
        position: relative;
    }

    .convenio-image {
        max-width: 118%;
        width: 118%;
        height: auto;
        object-fit: contain;
        display: block;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
}

/* Tablet - 2 items */
@media (min-width: 769px) and (max-width: 1024px) {
    .team-member {
        flex: 0 0 calc(50% - 12.5px);
    }

    .servicio-card {
        flex: 0 0 calc(50% - 12.5px);
    }
}

/* Desktop - ensure 3 items for services, 4 for team */
@media (min-width: 1025px) {
    .servicio-card {
        flex: 0 0 calc(33.333% - 17px);
    }

    .team-member {
        flex: 0 0 calc(25% - 19px);
        max-width: calc(25% - 19px);
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-member:hover {
        transform: scale(1.05);
        box-shadow: none;
        border-color: transparent;
    }

    .team-member h4 {
        display: block;
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.3rem;
    }

    .team-member .team-role {
        display: block;
        font-size: 0.9rem;
    }

    .team-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        margin: 0;
    }

    .convenio-image {
        max-width: 60%;
        width: 60%;
        height: auto;
        margin: 20px auto;
        display: block;
    }

    .nosotros-valores {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .valor-card {
        position: static;
        opacity: 1;
        pointer-events: auto;
        flex: none;
        max-width: none;
    }

    .nosotros-valores .carousel-btn {
        display: none;
    }
}
