/*======================================
   Variables de Tema (Minimalismo Premium)
=======================================*/
:root {
    /* Paleta de Colores (Extraída del manual de marca técnico provisto) */
    --bg-color: #121212;         /* Fondo oscuro casi negro */
    --bg-darker: #0c0c0c;        /* Fondo profundo para secciones alternativas */
    --bg-accent: #1a1a1a;        /* Fondo de tarjetas / acentos */
    
    --text-primary: #ffffff;     /* Texto principal blanco */
    --text-secondary: #aaaaaa;   /* Texto secundario grisáceo  */
    
    --brand-gray: #600000;       /* CMYK 75 0 6.5, Gris de la marca */
    --brand-dark: #20003C;       /* CMYK 48 8 14 10, Oscuro de la marca */
    --accent-color: #ffffff;     /* Detalles en blanco puro / líneas */
    
    /* Tipografías */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaciado de transición */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/*======================================
   Reset Global
=======================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

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

.text-justify {
    text-align: justify;
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }

/* Textos de Secciones */
.section-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--text-secondary);
    margin: 10px auto 0;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.bg-darker {
    background-color: var(--bg-darker);
}

/*======================================
   Navegación (Navbar)
=======================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(18, 18, 18, 0.85); /* Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container.logo-oversize {
    position: relative;
    align-items: flex-start; /* Para que no se centre verticalmente y podamos desbordar abajo */
}

.logo-img {
    height: 90px; /* Logo más grande */
    max-height: none; /* Quitamos restricción */
    position: absolute;
    top: -15px; /* Sube la mitad o un tercio hacia arriba para sobresalir */
    left: 5%; /* Aproximadamente donde estaría en el contenedor */
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); /* Sombra para destacarlo del fondo */
}

/* Fallback si no hay logo todavía */
.logo-fallback {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* Efecto hover subrayado elegante */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-contacto-nav {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 2px;
}

.btn-contacto-nav::after {
    display: none; /* Quitamos el subrayado a este botón */
}

.btn-contacto-nav:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/*======================================
   Hero Section
=======================================*/
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Fondo oscuro genérico premium hasta que carguen las fotos del estudio */
    background: linear-gradient(rgba(12, 12, 12, 0.8), rgba(12, 12, 12, 0.9)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2075&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero .subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero .title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--accent-color);
}

/* Indicador de scroll animado */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator p {
    margin-bottom: 15px;
}

.fade-down-animation {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/*======================================
   Nosotros / Estudio
=======================================*/
.grids-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-container {
    margin-top: 3rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    line-height: 1;
    display: block;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Imagen temporal */
.placeholder-img {
    width: 100%;
    height: 500px;
    background-color: var(--bg-accent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.placeholder-img i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/*======================================
   Servicios
=======================================*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/*======================================
   Portafolio Grid
=======================================*/
.portfolio-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 400px;
    gap: 20px;
}

/* Diseño uniforme de 2 proyectos por fila */
.portfolio-item { grid-column: span 1; }

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item .placeholder-item {
    width: 100%;
    height: 100%;
    background-color: var(--bg-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transition: var(--transition);
}

.portfolio-info h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item:hover .placeholder-item {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-info {
    bottom: 0;
}

/*======================================
   Contacto Final
=======================================*/
.contact {
    /* Un toque de elegancia con un gradiente oscuro diferente */
    background: radial-gradient(circle at center, var(--bg-accent) 0%, var(--bg-darker) 100%);
}

.light-text-p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #1ebe57; 
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.small-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/*======================================
   Zona de Pagos (Stripe Integration)
=======================================*/
.payments {
    background-color: var(--bg-accent);
}

.stripe-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stripe-badges .badge {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 2px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stripe-badges .badge i {
    font-size: 1rem;
    color: var(--text-primary);
}

.payments-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 3px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.payment-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.payment-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.payment-form input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 2px;
    transition: var(--transition);
}

.payment-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.secure-notice {
    font-size: 0.75rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.secure-notice i {
    color: #25D366; /* Color verde de seguridad */
}

/*======================================
   Footer
=======================================*/
footer {
    background-color: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.copyright {
    color: #666;
    font-size: 0.8rem;
}

/* Animaciones y Clases de Estado (Aparecer lentamente) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/*======================================
   Responsive (Celulares)
=======================================*/
@media screen and (max-width: 991px) {
    .hero .title { font-size: 3rem; }
    .grids-2 { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    .portfolio-item:nth-child(1), .portfolio-item:nth-child(3) {
        grid-column: span 1;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: var(--bg-accent);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        padding: 50px 20px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.nav-active { right: 0; }
    .nav-links li { margin: 20px 0; }
    .hero .title { font-size: 2.3rem; }
    .hero-buttons .btn { margin: 10px 5px; width: 100%; }
    .section-padding { padding: 60px 0; }
}
