:root {
    --primary: #e9d7a3;
    --background: #0a1120;
    --foreground: #0f1b33;
    --text: #f4f4f4;
    --text-muted: #dcdcdc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cormorant Garamond", serif;
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    text-align: center;
}

header {
    position: relative;
    text-align: center;
    padding: 0;
    background: var(--background);
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(10, 17, 32, 0) 0%, 
        rgba(10, 17, 32, 0.3) 60%, 
        rgba(10, 17, 32, 0.8) 85%, 
        rgba(10, 17, 32, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.header-image {
    width: 100%;
    height: 520px;
    display: block;
    object-fit: cover;
    object-position: center 40%;
}

header .hero-message {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    max-width: 780px;
}

.header-title {
    position: absolute;
    bottom: 130px;
    left: 0;
    right: 0;
    z-index: 3;
    font-family: 'Great Vibes', cursive;
    font-size: 5.5rem;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.header-title a {
    color: #e9d7a3;
    text-decoration: none;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.header-title a:hover {
    text-shadow: 2px 2px 12px rgba(233, 215, 163, 0.5);
}

/* Header mínimo para páginas internas */
.header-mini {
    padding: 20px 20px 15px;
    text-align: center;
    background: var(--background);
}

.header-mini-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header-mini-title:hover {
    text-shadow: 2px 2px 8px rgba(233, 215, 163, 0.5);
}

h1 {
    font-size: 4rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}

.hero-message {
    font-size: 1.75rem;
    max-width: 780px;
    margin: 0 auto 34px;
    font-style: italic;
    color: var(--primary);
    text-shadow: 0 0 6px rgba(233,215,163,0.55);
}

.hero-reveal {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(10px);
    animation: heroBruma 2.8s ease-out forwards;
}

@keyframes heroBruma {
    0% {
        opacity: 0;
        filter: blur(14px);
    }
    60% {
        opacity: 0.8;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 28px;
    text-decoration: none;
    transition: 0.3s ease;
    margin-top: 24px;
    font-size: 1.2rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(233,215,163,0.4);
}

p {
    text-align: center;
}

h2 {
    color: var(--primary);
    margin-top: 8px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 2.2rem;
}

.method {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.method h3 {
    font-size: 1.5rem;
}

.btn {
    margin-top: 25px;
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary);
    color: #0a1120;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
    align-self: center;
}

.btn:hover {
    filter: brightness(90%);
}

.section {
    padding: 60px 20px;
}

.sobre-mi-container {
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--foreground);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(233,215,163,0.3);
    backdrop-filter: blur(3px);
    text-align: center;
}

.sobre-mi-container p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.sobre-mi-imagen {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(233,215,163,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 0 auto 25px;
    display: block;
}

.lema {
    margin-top: 35px;
    padding: 18px 24px;
    border-left: 4px solid var(--primary);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--primary);
    text-align: center;
    line-height: 1.5;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, var(--foreground) 0%, rgba(15,27,51,0.95) 100%);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(233,215,163,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(233,215,163,0.15), 0 0 30px rgba(233,215,163,0.1);
    border-color: rgba(233,215,163,0.4);
}

.service-card img {
    width: 100%;
    max-width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    background-color: rgba(233,215,163,0.1);
}

.service-card h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
    min-height: 2.6em;
}

.saber-mas {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    display: inline-block;
}

.saber-mas:hover {
    border-bottom: 1px solid var(--primary);
    transform: translateX(4px);
}

.services h3 {
    font-size: 1.35rem;
}

footer {
    padding: 25px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(233,215,163,0.15);
}

/* Sección Método (steps dentro de .method) */
.step {
    background-color: var(--foreground);
    border: 1px solid rgba(233,215,163,0.25);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.step p {
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
}

.method-quote {
    text-align: center;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    color: var(--primary);
    font-size: 1.35rem;
}

.write-effect {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(6px);
    will-change: opacity, filter, transform;
    transition: opacity 1s ease-out, filter 1s ease-out, transform 1s ease-out;
}

.write-effect.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    text-shadow: 0 0 6px rgba(233,215,163,0.45);
}

.laguna-text {
    font-size: 1.4rem;
    margin-top: 22px;
    display: block;
    width: 100%;
    color: var(--primary);
    font-style: italic;
}

header h1 {
    margin: 0;
}

.more-about-button {
    background: none;
    border: none;
    color: var(--primary);
    padding: 4px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Cormorant Garamond", serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 2px;
}

.more-about-button:hover {
    opacity: 0.8;
}

.more-about-button .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.more-about-button.active .arrow {
    transform: rotate(180deg);
}

.more-about-me-button {
    margin-top: 18px;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

.more-about-me-button:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(233,215,163,0.4);
}

.sobre-mi-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 1s ease;
    margin-top: 8px;
}

.sobre-mi-extra.visible {
    max-height: 600px;
    opacity: 1;
}

.sobre-mi-extra p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

#sobre-mi h2 {
    margin-bottom: 18px;
}

/* Responsive Design - Media Queries */
/* Estilos para páginas de detalle de servicio */
.servicio-detalle {
    padding: 40px 20px 80px;
}

.servicio-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--foreground);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(233,215,163,0.3);
    text-align: center;
}

.servicio-imagen {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px;
    display: block;
}

.servicio-container h2 {
    margin-bottom: 20px;
}

.servicio-info {
    text-align: center;
}

.servicio-descripcion {
    font-size: 1.3rem;
    margin: 20px 0;
    text-align: center;
}

.servicio-precio {
    text-align: center;
    margin: 25px 0;
}

.servicio-precio strong {
    font-size: 1.5rem;
    color: var(--primary);
}

.servicio-contenido {
    margin: 30px 0;
}

.servicio-contenido h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    text-align: center;
}

.servicio-contenido p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: center;
}

.servicio-contenido ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.servicio-contenido ul li {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 8px 0;
    padding-left: 0;
    position: relative;
    text-align: center;
}

.servicio-contenido ul li::before {
    content: "✨ ";
    position: relative;
    left: 0;
}

.servicio-container .cta-button {
    display: block;
    margin: 10px auto;
    text-align: center;
}

.servicio-botones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 30px 0 10px;
}

.servicio-botones .cta-button {
    margin: 0;
    min-width: 280px;
}

.cta-email {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-email:hover {
    background-color: var(--primary);
    color: var(--background);
}

.btn-volver {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    margin: 15px auto 0;
    transition: 0.3s;
    text-align: center;
}

.btn-volver:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.8rem;
        bottom: 160px;
    }

    header .hero-message {
        bottom: 50px;
        font-size: 1.15rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card img {
        max-width: 180px;
        height: 180px;
    }

    .service-card h3 {
        font-size: 1.3rem;
        min-height: auto;
    }

    .method {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .servicio-container {
        padding: 35px 25px;
    }

    .servicio-imagen {
        width: 220px;
        height: 220px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .servicio-nav {
        flex-direction: column;
        gap: 15px;
    }

    .servicio-nav a {
        text-align: center;
    }

    .servicio-nav .next {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 2.5rem;
        bottom: 150px;
    }

    header .hero-message {
        bottom: 40px;
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 22px;
    }

    .sobre-mi-container {
        padding: 30px 20px;
    }
}

/* Estados de focus para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.cta-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(233,215,163,0.2);
}

.more-about-button:focus-visible,
.more-about-me-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Botón Volver Arriba */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--background);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(233,215,163,0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* Sección Contacto */
#contacto {
    background-color: var(--primary);
    color: #0a1120;
}

#contacto h2 {
    color: #0a1120;
}

.contacto-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.3rem;
}

.contacto-text-bottom {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 1.3rem;
}

.contacto-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 35px;
}

.contacto-buttons .btn {
    background-color: #0a1120;
    color: var(--primary);
}

.contacto-email {
    font-weight: 600;
    font-size: 1.3rem;
    color: #0a1120;
    text-decoration: none;
}

.contacto-footer {
    text-align: center;
    font-style: italic;
    font-size: 1.3rem;
    opacity: 0.8;
}

/* Enlaces en contenido */
.enlace-contenido {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: 0.3s;
}

.enlace-contenido:hover {
    opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 900px;
    margin: 0 auto 25px;
    font-size: 1rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--primary);
}

/* Navegación entre servicios */
.servicio-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 25px 0;
    border-top: 1px solid rgba(233,215,163,0.2);
}

.servicio-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.servicio-nav a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.servicio-nav a.prev:hover {
    transform: translateX(-3px);
}

.servicio-nav .prev {
    text-align: left;
}

.servicio-nav .next {
    text-align: right;
    margin-left: auto;
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

