/* ============================= */
/* RESET Y CONTENEDOR GENERAL */
/* ============================= */

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

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: 400px;
    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.2);
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 400px;
    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: 3.5rem;
    color: white;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-text p {
    font-size: 1.4rem;
    color: white;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 6px 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: 1fr 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: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #5B0105;
}

.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);
    max-height: 500px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* ============================= */
/* BOTONES DE ACCIÓN */
/* ============================= */

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-buttons > a > .btn-primary {
  background: #5B0105 !important;
  color: #fff !important;
  padding: 20px 12px !important;
  border-radius: 40px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 1.2rem !important;
  transition: all 0.3s ease !important;
  border: 2px solid #5B0105 !important;
  white-space: nowrap !important;
  font-family: 'DreamCottage' !important;
  width: 100%;
  cursor: pointer;
}

.btn-primary:hover {
    background: #8d5d67;
}

.btn-secondary {
    background: transparent;
    color: #5B0105;
    border: 2px solid #5B0105;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #5B0105;
    color: white;
}

/* ============================= */
/* SECCIÓN DOCTORES */
/* ============================= */

.doctors-section {
    margin-top: 10px;
}

.doctors-label {
    font-size: 1.2rem;
    color: #5B0105;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.doctor-card {
    background: transparent;
    border: 2px solid #5B0105;
    border-radius: 50px;
    padding: 12px 20px;
    text-align: center;
    font-size: 1rem;
    color: #5B0105;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    background: #5B0105;
    color: white;
}

/* ============================= */
/* INFO SECTION - COLUMNA DERECHA */
/* ============================= */

.info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================= */
/* ACORDEONES */
/* ============================= */

.accordion-item {
    border-bottom: 2px solid #d4c4b0;
    padding-bottom: 15px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.accordion-title {
    font-size: 1.8rem;
    color: #5B0105;
    font-weight: 400;
    margin: 0;
}

.accordion-icon {
    font-size: 2.5rem;
    color: #5B0105;
    transition: transform 0.3s ease;
    line-height: 1;
    font-weight: 300;
    position: relative;
    z-index: 3;
}

.accordion-icon.active {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #a08060;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.accordion-content.active {
    max-height: 600px;
    padding-top: 15px;
}

/* ============================= */
/* ZONAS DE TRABAJO */
/* ============================= */

.zones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.zone-btn {
    background: #5B0105;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zone-btn:hover {
    background: #5B0105 !important;
}

.zone-btn.small-text {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ============================= */
/* CARACTERÍSTICAS DEL TRATAMIENTO */
/* ============================= */

/* ── Feature Cards — Lujoso y elegante ── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 50px 0;
}

.features-grid-modificated {
    grid-template-columns: repeat(4, 1fr) !important;
}

.features-grid-arm {
    grid-template-columns: repeat(5, 1fr) !important;
}

.results-title {
    margin-bottom: 30px;
    font-family: 'DreamCottage' !important;
    font-size: 1.8rem;
    color: #8d5d67;
}

/* ── Card base ── */
.feature-card {
    background: linear-gradient(145deg, #6b0108 0%, #5B0105 50%, #3d0003 100%) !important;
    border-radius: 20px;
    padding: 15px 20px;
    color: white;
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "icon label"
        "value value";
    align-items: center;
    gap: 0 10px;
    min-height: 120px;
    overflow: hidden;
    cursor: default;
    position: relative;

    /* Borde dorado sutil */
    border: 1px solid rgba(212, 175, 116, 0.15);

    transition:
        min-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Línea dorada en la parte superior — efecto lujo */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 116, 0.6), transparent);
    transition: width 0.4s ease, left 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

/* Brillo diagonal que aparece al hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 70%
    );
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

/* ── Hover: toda la magia ── */
.feature-card:hover {
    min-height: 160px;
    transform: translateY(-4px);
    border-color: rgba(212, 175, 116, 0.45);
    box-shadow:
        0 12px 35px rgba(91, 1, 5, 0.45),
        0 0 0 1px rgba(212, 175, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Línea dorada se expande al hover */
.feature-card:hover::before {
    left: 5%;
    width: 90%;
    opacity: 1;
}

/* Brillo deslizante al hover */
.feature-card:hover::after {
    left: 120%;
}

/* ── Icono ── */
.feature-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    filter: drop-shadow(0 0 0px rgba(212, 175, 116, 0));
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Micro-animación icono al hover */
.feature-card:hover .feature-icon {
    filter: drop-shadow(0 0 6px rgba(212, 175, 116, 0.5));
}

.feature-card:hover .feature-icon img {
    transform: rotate(-8deg) scale(1.15);
}

/* ── Label ── */
.feature-label {
    grid-area: label;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-label {
    color: rgba(212, 175, 116, 0.9);
}

/* ── Value truncado por defecto ── */
.feature-value {
    grid-area: value;
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 8px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.4em;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.feature-card:hover .feature-value {
    -webkit-line-clamp: unset;
    max-height: 200px;
    overflow: visible;
    opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .features-grid,
    .features-grid-modificated,
    .features-grid-arm {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* Móvil: sin hover, texto siempre visible */
    .feature-value {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }

    /* Móvil: quitar transform para que no se vea raro al tap */
    .feature-card:hover {
        transform: none;
    }
}

@media (max-width: 400px) {
    .features-grid,
    .features-grid-modificated,
    .features-grid-arm {
        grid-template-columns: 1fr !important;
    }
}

/* ============================= */
/* 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 */
/* ============================= */

/* Tablets grandes */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-section {
        height: 350px;
    }
    
    .hero-img {
        height: 350px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .accordion-title {
        font-size: 1.5rem;
    }

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

    .hero-content {
        height: 250px;
    }

    .hero-text h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .container {
        padding: 30px 15px;
    }

    .feature-card {
        min-height: 150px;
        padding: 25px 15px;
    }
}

/* Móviles pequeños */
@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;
    }

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

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

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

    .accordion-title {
        font-size: 1.3rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 1.1rem;
        padding: 15px 25px;
    }

    .hero-content {
        height: 200px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

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

/* Extra pequeños */
@media (max-width: 400px) {
    .accordion-title {
        font-size: 1.2rem;
    }

    .feature-label {
        font-size: 0.9rem;
    }

    .feature-value {
        font-size: 1rem;
    }
    
    .hero-content {
        height: 180px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
}