/* ============================= */
/* RESET Y CONTENEDOR GENERAL */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS - Sistema de diseño */
@font-face {
    font-family: 'DreamCottage';
    src: url('/public/fonts/DreamCottage-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #f9f5f0;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero-section {
    position: relative;
    width: 100vw;
    height: 300px;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(109, 61, 71, 0.3);
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
}

.hero-text h1 {
    font-size: 3rem;
    color: white;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============================= */
/* LAYOUT PRINCIPAL */
/* ============================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 620px 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* ============================= */
/* COLUMNA IZQUIERDA */
/* ============================= */

.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================= */
/* GALERÍA */
/* ============================= */

.gallery-section {
    display: flex;
    gap: 15px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #6d3d47;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 560px;
    height: 374px;
}

.main-image img {
    width: 560px;
    height: 374px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* ============================= */
/* BOTONES DE ACCIÓN */
/* ============================= */

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    background: #6d3d47;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background: #8d5d67;
}

.btn-secondary {
    background: transparent;
    color: #6d3d47;
    border: 2px solid #6d3d47;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #6d3d47;
    color: white;
}

/* ============================= */
/* SECCIÓN DOCTORES */
/* ============================= */

.doctors-section {
    margin-top: 10px;
}

.doctors-label {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    display: block;
    font-weight: 400;
}

.doctors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.doctor-card {
    background: transparent;
    border: 2px solid #6d3d47;
    border-radius: 50px;
    padding: 12px 20px;
    text-align: center;
    font-size: 1rem;
    color: #6d3d47;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    background: #6d3d47;
    color: white;
}

/* ============================= */
/* INFO SECTION - COLUMNA DERECHA */
/* ============================= */

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================= */
/* ACORDEONES */
/* ============================= */

.accordion-item {
    border-bottom: 1px solid #d4c4b0;
    padding-bottom: 15px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.accordion-title {
    font-size: 1.8rem;
    font-family: 'DreamCottage' !important;
    color: #6d3d47;
    font-weight: 400;
    margin: 0;
}

.accordion-icon {
    font-size: 2rem;
    color: #6d3d47;
    transition: transform 0.3s ease;
    line-height: 1;
    font-weight: 300;
    min-width: 30px;
    text-align: center;
}

.accordion-icon.active {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #a08060;
    font-size: 1rem;
    line-height: 1.6;
}

.accordion-content.active {
    max-height: 800px;
    padding-top: 15px;
}

.accordion-content p {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #ac9073;
    font-size: 1.3rem;
}

.info-value {
    color: #a08060;
    font-size: 1.3rem;
}

/* ============================= */
/* INDICACIONES */
/* ============================= */

.indications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.indication-btn {
    background: #6d3d47;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-family: 'DreamCottage' !important;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 1.3;
    text-align: center;
}

.indication-btn:hover {
    background: #8d5d67;
}

/* ============================= */
/* RECOMENDACIONES */
/* ============================= */

.recommendations-section {
    background: #6d3d47;
    border-radius: 20px;
    padding: 30px 40px;
    margin: 40px 0;
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.recommendations-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recommendations-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.recommendations-content {
    color: white;
}

.recommendations-content h3 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 5px;
    font-family: 'DreamCottage' !important;
}

.recommendations-content ul {
    list-style: none;
    padding: 0;
}

.recommendations-content ul li {
    font-size: 1.4rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.recommendations-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* ============================= */
/* GALERÍA DE RESULTADOS */
/* ============================= */

.results-section {
    margin: 50px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.result-image {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 400px 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        height: 250px;
    }
    
    .hero-img {
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .accordion-title {
        font-size: 1.4rem;
    }

    .indications-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: 220px;
    }

    .hero-img {
        height: 220px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .container {
        padding: 30px 15px;
    }

    .recommendations-section {
        flex-direction: column;
        padding: 25px 20px;
    }

    .recommendations-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .gallery-section {
        flex-direction: column-reverse;
    }

    .main-image {
        height: 300px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .accordion-title {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 1.1rem;
        padding: 14px 25px;
    }

    .hero-section {
        height: 180px;
    }

    .hero-img {
        height: 180px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    .accordion-title {
        font-size: 1.1rem;
    }

    .indication-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
}