/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: black; 
    color: #e6e6e6;;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    padding-top: 90px;
}

/* =========================
   SECCIONES
========================= */

section {
    padding: 40px 5%;
    overflow-x: hidden;
}

/* =========================
   TIPOGRAFIA GLOBAL
========================= */

h1, h2, h3, p {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================
   BOTONES DE NAVEGACION
========================= */

.menu .nav-btn {
    background: transparent;
    border: 1px solid #8b0000;
    border-radius: 6px;
    padding: 10px 22px;
    transition: 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
    display: inline-block;
}

.menu .nav-btn:hover {
    background: #8b0000;
    box-shadow: 0 0 15px #8b0000;
    transform: translateY(-2px);
    color: #fff;
}

/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 50px 5%;
    flex-wrap: wrap;
}

/* =========================
   TEXTO
========================= */

.hero-text {
    flex: 1;
    min-width: 280px;
    max-width: 650px;
    word-wrap: break-word;
}

.hero-text h1 {
    font-size: 70px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
    word-break: break-word;
}

.hero-text h1 span {
    color: #8b0000;
}

.hero-text h2 {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 18px;
    word-break: break-word;
}

.hero-text h2 span {
    color: #8b0000;
}

.hero-text h3 {
    font-size: 26px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: break-word;
}

.hero-text p {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
    word-break: break-word;
}

/* =========================
   IMAGENES
========================= */

img {
    max-width: 100%;
    display: block;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}

.hero-image img {
    width: 100%;
    max-width: 750px;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

/* =========================
   SERVICIOS
========================= */

.servicios-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 280px;
}

.servicios-galeria img {
    max-width: 340px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* =========================
   PORTAFOLIO
========================= */

.portfolio-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.12);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
}

/* =========================
   CONTACTO
========================= */

.contact-info {
    margin-top: 35px;
    max-width: 650px;
}

.contact-info h3 {
    font-size: 28px;
    color: #8b0000;
    margin-top: 20px;
    margin-bottom: 10px;
    word-break: break-word;
}

.contact-info p {
    font-size: 22px;
    word-break: break-word;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    word-break: break-word;
}

.contact-info a:hover {
    color: #8b0000;
}

/* =========================
   AGENDAR SESION
========================= */

.agendar-wrapper {
    margin-top: 45px;
}

.agendar-wrapper p {
    font-size: 20px;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 18px;
}

.agendar-btn {
    display: inline-block;
    border: 1px solid #8b0000;
    border-radius: 6px;
    padding: 14px 32px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    letter-spacing: 1.5px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.agendar-btn:hover {
    background: #8b0000;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

.galeria-cta {
    text-align: center;
    padding: 20px 5% 60px;
}

.galeria-cta p {
    font-size: 20px;
    font-weight: 300;
    color: #aaa;
    margin-bottom: 18px;
}

/* =========================
   LINEA
========================= */

hr {
    border: none;
    height: 1px;
    background: #333;
    margin: 40px 0;
}

/* =========================
   FOOTER
========================= */

footer {
    width: 100%;
    text-align: center;
    padding: 30px 5%;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 22px;
}

.footer-social a {
    color: #aaa;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #8b0000;
    transform: translateY(-3px);
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

footer p {
    font-size: 18px;
    color: #aaa;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .hero-text h2 {
        font-size: 34px;
    }

    .hero-text h3 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .menu {
        gap: 12px;
    }

    .menu .nav-btn {
        padding: 10px 16px;
        font-size: 16px;
    }

    .portfolio-grid img {
        height: 320px;
    }

    .hero-image img {
        max-width: 100%;
    }

    .servicios-galeria img {
        max-width: 280px;
    }
}

@media (max-width: 600px) {

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .hero-text h3 {
        font-size: 20px;
    }

    .hero-text p {
        font-size: 18px;
    }

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

    .portfolio-grid img {
        height: 280px;
    }
}

/* =========================
   NAVBAR LOGO
========================= */

.navbar-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
    text-decoration: none;
}

.navbar-logo img {
    height: 48px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    display: block;
}

/* =========================
   HERO INDEX (texto más arriba)
========================= */

.hero-index {
    align-items: flex-start;
    padding-top: 20px;
}

.hero-index .hero-text {
    padding-top: 30px;
}

/* =========================
   FORMULARIO AGENDAR SESIÓN
========================= */

.agendar-section {
    padding: 20px 5% 70px;
    text-align: center;
}

.agendar-section h2 {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.1;
}

.agendar-section h2 span {
    color: #8b0000;
}

.agendar-section > p {
    font-size: 20px;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 40px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    background: transparent;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 14px 18px;
    color: #e6e6e6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: #666;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #8b0000;
}

.booking-form select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.booking-form select option {
    background: #111;
    color: #e6e6e6;
}

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

.booking-form .agendar-btn {
    align-self: center;
    margin-top: 6px;
    cursor: pointer;
    background: transparent;
    font-weight: 400;
}

/* =========================
   RETRATO ENMARCADO (sobre-mi)
========================= */

.portrait-frame {
    border: 1.5px solid #8b0000 !important;
    border-radius: 14px;
}

/* =========================
   SERVICIOS — TEXTO REDUCIDO
========================= */

.servicios-hero .hero-text h1 {
    font-size: 44px;
    margin-bottom: 12px;
}

.servicios-hero .hero-text h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.titulo-servicios h1 {
    font-size: 60px;
}

.titulo-servicios h2 {
    font-size: 28px;
}

/* =========================
   MODAL PORTAFOLIO
========================= */

.image-modal {

    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);

    justify-content: center;
    align-items: center;
    padding: 30px;

}

.modal-content {

    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;

}

.close-modal {

    position: absolute;
    top: 20px;
    right: 35px;

    color: white;
    font-size: 45px;
    cursor: pointer;

    transition: 0.3s;

}

.close-modal:hover {

    color: #8b0000;

}

/* Modal arrows */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid #8b0000;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 10001;
    padding: 0;
    font-family: serif;
}

.modal-prev { left: 24px; }
.modal-next { right: 24px; }

.modal-prev:hover,
.modal-next:hover {
    background: #8b0000;
    box-shadow: 0 0 18px rgba(139, 0, 0, 0.6);
}

@media (max-width: 600px) {
    .modal-prev { left: 10px; width: 42px; height: 42px; font-size: 24px; }
    .modal-next { right: 10px; width: 42px; height: 42px; font-size: 24px; }
}

/* =========================
   ANIMACIONES DE SCROLL
========================= */

.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible,
.slide-left.visible,
.slide-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.28s; }
.delay-4 { transition-delay: 0.38s; }
.delay-5 { transition-delay: 0.48s; }

/* =========================
   FILTROS PORTAFOLIO
========================= */

.filtros-portafolio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 32px 0 10px;
}

.filtro-btn {
    background: transparent;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: #aaa;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover {
    border-color: #8b0000;
    color: #fff;
}

.filtro-btn.active {
    background: #8b0000;
    border-color: #8b0000;
    color: #fff;
    box-shadow: 0 0 16px rgba(139, 0, 0, 0.45);
}

.portfolio-grid img {
    transition: transform 0.35s ease, filter 0.35s ease,
                box-shadow 0.35s ease, opacity 0.35s ease;
}

.portfolio-grid img.oculta {
    display: none;
}

/* =========================
   SECCIÓN DE RESEÑAS
========================= */

.resenas-section {
    padding: 30px 5% 70px;
    text-align: center;
}

.resenas-section > h2 {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.1;
}

.resenas-section > h2 span {
    color: #8b0000;
}

.resenas-section > .subtitulo-resenas {
    font-size: 20px;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 50px;
}

.resenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.resena-card {
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    padding: 30px 28px;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.resena-card:hover {
    border-color: #8b0000;
    transform: translateY(-4px);
}

.resena-stars {
    color: #8b0000;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.resena-texto {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
    font-style: italic;
}

.resena-autor {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.resena-nombre {
    font-size: 17px;
    font-weight: 500;
    color: #e6e6e6;
}

.resena-fecha {
    font-size: 14px;
    color: #555;
}

/* Formulario reseña */
.resena-form-wrapper {
    max-width: 620px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1e1e1e;
}

.resena-form-wrapper > h3 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.resena-form-wrapper > h3 span {
    color: #8b0000;
}

.resena-form-wrapper > p {
    font-size: 18px;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 28px;
}

.resena-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resena-form input,
.resena-form textarea {
    background: transparent;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 13px 18px;
    color: #e6e6e6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.resena-form input::placeholder,
.resena-form textarea::placeholder { color: #555; }

.resena-form input:focus,
.resena-form textarea:focus {
    outline: none;
    border-color: #8b0000;
}

.resena-form textarea {
    resize: vertical;
    min-height: 110px;
}

.resena-form .agendar-btn {
    align-self: center;
    cursor: pointer;
    background: transparent;
    margin-top: 4px;
}

/* Selector de estrellas */
.star-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    padding: 4px 0;
}

.star-selector span {
    color: #333;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.star-selector span.activa {
    color: #8b0000;
    transform: scale(1.15);
}

.resena-mensaje {
    font-size: 18px;
    color: #8b0000;
    margin-top: 14px;
    min-height: 26px;
    font-style: italic;
}

@media (max-width: 700px) {
    .resenas-section > h2 { font-size: 38px; }
    .resena-texto { font-size: 17px; }
}

/* ── MODAL BIOGRAFÍA ── */
.bio-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeInModal 0.3s ease;
}
.bio-modal-overlay.open {
    display: flex;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.bio-modal-inner {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
}
.bio-modal-img {
    flex: 0 0 42%;
    max-height: 85vh;
    object-fit: cover;
    border: 1px solid rgba(192, 57, 43, 0.3);
}
.bio-modal-text {
    flex: 1;
    overflow-y: auto;
    max-height: 85vh;
    padding-right: 1rem;
}
.bio-modal-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #c0392b;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
}
.bio-modal-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #ddd;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}
.bio-modal-close {
    position: fixed;
    top: 1.4rem;
    right: 1.8rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10000;
}
.bio-modal-close:hover { opacity: 1; }
.foto-clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}
.foto-clickable:hover { opacity: 0.85; }
@media (max-width: 768px) {
    .bio-modal-inner {
        flex-direction: column;
        gap: 1.5rem;
        overflow-y: auto;
    }
    .bio-modal-img {
        flex: none;
        width: 100%;
        max-height: 45vh;
    }
    .bio-modal-text {
        max-height: none;
    }
}
