/**
 * ROMERO WEB STUDIO
 * Midnight Premium CSS System
 */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,700&family=Montserrat:wght@700;800&family=Inter:wght@300;400;500&display=swap');

:root {
    --bg-deep: #050914;      /* Deep Midnight Blue */
    --accent-cyan: #4FD1C5;  /* Cyan Neon */
    --text-primary: #F8FAFC; /* Smoke White */
    --text-muted: #94A3B8;   /* Slate Gray */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-rmr: 'Bodoni Moda', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 14px;
}

/* --- Base & Reset --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-primary); }

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

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

.section { padding: 120px 0; }

.text-cyan { color: var(--accent-cyan); }

/* --- Navbar (Glass) --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 30px 0;
    background: rgba(5, 9, 20, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 9, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

@media (min-width: 768px) { .logo-name { display: block; } }

.nav-links { list-style: none; display: flex; align-items: center; gap: 40px; }
.nav-links a:hover { color: var(--accent-cyan); }

.mobile-toggle { display: none; background: none; border: none; color: #FFF; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.12) 0%, transparent 70%);
    z-index: -1;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; letter-spacing: -2px; }

.glow-text {
    background: linear-gradient(to bottom, #FFF, #CCC);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(79, 209, 197, 0.2);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 45px auto;
}

.hero-cta { display: flex; gap: 20px; justify-content: center; align-items: center; }

/* --- Buttons (Premium Glow) --- */
.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--bg-deep);
    padding: 16px 36px;
    border-radius: var(--radius);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.4);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 30px rgba(79, 209, 197, 0.6); }

.btn-glow-primary {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
}
.btn-glow-primary:hover { background: rgba(79, 209, 197, 0.15); box-shadow: 0 0 20px rgba(79, 209, 197, 0.3); }

.btn-text { color: var(--text-primary); font-weight: 500; display: flex; align-items: center; gap: 10px; }

.btn-glow-cyan {
    background: linear-gradient(135deg, var(--accent-cyan), #38B2A5);
    color: var(--bg-deep);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 5px 25px rgba(79, 209, 197, 0.3);
}

/* --- Glass Cards (Bento) --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 209, 197, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

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

.card-icon {
    width: 60px; height: 60px;
    background: rgba(79, 209, 197, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 25px;
}

.features { list-style: none; margin: 20px 0 35px 0; }
.features li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 300; }

.btn-card-action {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: rgba(79, 209, 197, 0.1);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: 10px;
    color: var(--accent-cyan);
    font-weight: 600;
    transition: var(--transition);
}

.btn-card-action:hover {
    background: var(--accent-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.3);
}

.card-premium { position: relative; border-color: rgba(79, 209, 197, 0.2); }
.premium-badge {
    position: absolute; top: 20px; right: 20px;
    background: var(--accent-cyan);
    color: var(--bg-deep);
    font-size: 0.7rem; font-weight: 800;
    padding: 5px 12px; border-radius: 20px;
    text-transform: uppercase;
}

/* --- Portfolio Grid --- */
.portfolio-container {
    position: relative;
    min-height: 350px; /* Mantener espacio para evitar saltos */
}

.portfolio-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.portfolio-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.page-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-dot:hover {
    border-color: var(--accent-cyan);
    background: rgba(79, 209, 197, 0.1);
}

.page-dot.active {
    background: var(--accent-cyan);
    color: var(--bg-deep);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.4);
}

.work-category { 
    color: var(--accent-cyan); 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 12px; 
    display: block; 
}

.work-card h3 { 
    font-size: 1.8rem; 
    margin-bottom: 12px; 
    color: #FFF; 
}

.work-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-bottom: 25px; 
    line-height: 1.7;
}

.work-card:hover .btn-text {
    color: var(--accent-cyan);
}

/* --- About & Process --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.text-gradient {
    font-size: 3rem; margin-bottom: 30px;
    background: linear-gradient(135deg, #FFF, var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-stats { display: flex; gap: 40px; margin-top: 40px; }
.stat span { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--accent-cyan); display: block; }

.about-image-wrapper {
    width: 100%;
    border-radius: var(--radius);
    padding: 20px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.05), transparent);
    border: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.about-image-wrapper:hover {
    border-color: rgba(79, 209, 197, 0.3);
    transform: scale(1.02);
}

.about-img-premium {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    /* Suave resplandor para integrar la imagen al fondo oscuro */
    filter: drop-shadow(0 0 15px rgba(79, 209, 197, 0.1));
}

/* --- Contact Midnight Version (Integrated Style) --- */
.contact-main-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-card-midnight {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    padding: 60px;
    gap: 50px;
    align-items: center;
    border: var(--glass-border);
}

.contact-card-midnight:hover {
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 0 40px rgba(79, 209, 197, 0.1);
}

.contact-title-v2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.contact-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-circle {
    width: 44px;
    height: 44px;
    background: rgba(79, 209, 197, 0.15);
    border: 1px solid rgba(79, 209, 197, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(79, 209, 197, 0.1);
}

.contact-item-v2 span, .hours-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hours-text p {
    margin-bottom: 8px;
}

.contact-right {
    height: 100%;
    min-height: 350px;
}

.map-container-v2 {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%); /* Dark Map mode */
    border: var(--glass-border);
}

@media (max-width: 900px) {
    .contact-card-midnight {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        text-align: center;
    }
    .contact-item-v2 {
        flex-direction: column;
        align-items: center;
    }
    .contact-right {
        height: 300px;
    }
}

.footer-midnight {
    background-color: #020409;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 60px; }

.footer-logo-v2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #FFF;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-tagline {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 5px;
}

.footer-column h4 { font-size: 0.95rem; margin-bottom: 25px; letter-spacing: 2px; font-weight: 800; color: #FFF; }
.footer-links, .footer-social-links { display: flex; flex-direction: column; gap: 15px; color: var(--text-muted); }
.footer-links a:hover, .footer-social-links a:hover { color: var(--accent-cyan); }

.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.03); color: #444; font-size: 0.8rem; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@keyframes bounce { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 900px) {
    .bento-grid, .about-grid, .contact-grid, .footer-container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-deep); padding: 40px; border-bottom: 1px solid var(--glass-border);
    }
    .hero-cta { flex-direction: column; }
    .logo-big { font-size: 4rem; }
}
