/* ============================================
   Tull Arquitectura - Estilos
   Paleta: Negro #1a1a1a | Verde oliva #3d5c3d | Blanco #fafafa
   ============================================ */

:root {
    --color-black: #1a1a1a;
    --color-olive: #3d5c3d;
    --color-olive-light: #4a6b4a;
    --color-olive-dark: #2d4a2d;
    --color-white: #fafafa;
    --color-cream: #f5f3ef;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Páginas con footer fijo al final de la pantalla (Sobre mí, Contacto) */
body.page-sticky-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.page-sticky-footer .page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.page-sticky-footer .page-main .page-header {
    flex-shrink: 0;
}

body.page-sticky-footer .page-main .page-content-centered {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido principal que empuja el footer abajo */
body > main.page-main {
    flex: 1;
}

/* Navegación */
.navbar {
    background: transparent;
    transition: background var(--transition-smooth), padding var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar-brand .logo-nav {
    height: 42px;
    width: auto;
}

.nav-link {
    font-weight: 400;
    color: var(--color-black) !important;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-olive);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--color-olive) !important;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--color-black);
    color: var(--color-black);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    margin-left: 0.5rem;
}

.btn-lang:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: white;
}

.lang-sep {
    opacity: 0.5;
}

/* Hero / Portada */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-section:hover .hero-bg {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.6) 100%);
}

.hero-logo {
    max-width: 280px;
    width: 80%;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero-tagline { font-size: 2.75rem; }
}

@media (min-width: 992px) {
    .hero-tagline { font-size: 3.25rem; }
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Encabezado de páginas internas */
.page-header {
    padding: 8rem 0 3rem;
    background: var(--color-cream);
}

.page-header .section-title {
    margin-bottom: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 16px; }
}

/* Secciones generales */
.section-py {
    padding: 5rem 0;
}

/* Sección bio CTA (mismo margen arriba y abajo) */
.section-bio-cta {
    padding: 5rem 0 0;
}

.bio-cta-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #444;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .bio-cta-text { font-size: 1.6rem; }
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-black);
}

.section-lead {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-olive-dark);
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* Bioarquitectura */
.bio-gallery img {
    transition: transform var(--transition-smooth);
}

.bio-gallery img:hover {
    transform: scale(1.03);
}

/* Servicios */
.service-item {
    padding: 2.5rem 2rem;
    transition: transform var(--transition-smooth);
    border: 2px solid var(--color-olive);
    border-radius: 12px;
    background-color: var(--color-cream);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    transform: translateY(-3px);
    background-color: rgba(61, 92, 61, 0.08);
    border-color: var(--color-olive-dark);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    transition: color var(--transition-smooth);
    margin: 0;
}

.service-item:hover .service-title {
    color: var(--color-olive);
}

@media (min-width: 768px) {
    .service-item {
        padding: 3rem 2.5rem;
    }
    .service-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .service-title {
        font-size: 2rem;
    }
}

/* Proyectos */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 8px;
    transition: transform var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: color var(--transition-smooth);
}

.project-card:hover .project-title {
    color: var(--color-olive);
}

/* Animación al scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sobre mí */
.sobre-mi-photo {
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform var(--transition-smooth);
}

.sobre-mi-photo:hover {
    transform: scale(1.02);
}

/* Contacto */
.contacto-photo-wrapper {
    display: inline-block;
}

.contacto-photo {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: block;
}

.contacto-photo-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.contact-link {
    color: var(--color-olive);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.contact-link:hover {
    color: var(--color-olive-dark);
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.contact-info-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Footer */
footer {
    background: var(--color-black);
    color: white;
    margin-top: auto;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

/* Página de proyecto individual */
.project-header {
    padding: 8rem 0 4rem;
    background: var(--color-cream);
}

.project-description {
    font-size: 1.15rem;
    color: var(--color-olive-dark);
    max-width: 700px;
    line-height: 1.7;
    margin-top: 1rem;
}

.project-gallery {
    padding: 4rem 0;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Modal galería */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 991px) {
    .section-py { padding: 3rem 0; }
    .section-title { font-size: 2rem; }
}
