/* =========================================
   1. VARIABLES & RESET (BASE GUARDATTI)
   ========================================= */
:root {
    --primary: #FF3D00;        
    --primary-glow: rgba(255, 61, 0, 0.5);
    --dark-bg: #050505;       
    --card-bg: rgba(20, 20, 20, 0.6); 
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --radius: 16px;
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   2. BACKGROUND EFFECTS
   ========================================= */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}
.noise {
    position: absolute; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.07;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
    animation: float 10s infinite alternate;
}
.blob-1 { width: 300px; height: 300px; background: var(--primary); top: -10%; left: -10%; }
.blob-2 { width: 400px; height: 400px; background: #5a0000; bottom: -10%; right: -10%; animation-delay: -5s; }

/* =========================================
   3. LAYOUT & NAV
   ========================================= */
.container {
    width: 100%; max-width: 1000px; padding: 1rem 1.5rem;
    display: flex; flex-direction: column; gap: 4rem; 
}

.top-nav {
    position: absolute; top: 0; left: 0; width: 100%;
    padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
}
.back-link {
    font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem;
    transition: color 0.3s;
}
.back-link:hover { color: var(--primary); }
.nav-logo { height: 40px; opacity: 0.8; }

/* =========================================
   4. HERO SECTION (RESTORED CLEAN VERSION)
   ========================================= */
.hero-section {
    padding-top: 6rem; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    /* Sin imagen de fondo aquí */
}

.brand-badge {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em;
    color: var(--primary); text-transform: uppercase; margin-bottom: 1rem;
    background: rgba(255, 61, 0, 0.1); padding: 5px 15px; border-radius: 50px;
    border: 1px solid rgba(255, 61, 0, 0.2);
}

.guardatti-text {
    font-size: 3.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; margin: 0;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 40%, var(--primary) 50%, #ffffff 60%, #ffffff 100%);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shine 6s ease-in-out infinite; line-height: 1.1;
}

.hero-title {
    font-size: 1.5rem; color: #fff; margin-top: 0.5rem; font-weight: 600;
}

.hero-subtitle {
    font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 1rem auto 2rem; line-height: 1.6;
}

/* Botón CTA Principal */
.btn-primary {
    background: var(--primary); color: #fff; padding: 1rem 2rem; border-radius: 50px;
    font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(255, 61, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 61, 0, 0.5);
}
.microcopy { display: block; margin-top: 0.8rem; font-size: 0.75rem; color: var(--text-muted); opacity: 0.7; }

/* =========================================
   5. SECTIONS & CARDS (REUSABLE)
   ========================================= */
.section-header {
    font-size: 1.8rem; text-align: center; margin-bottom: 2rem; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
}
.section-intro p { text-align: center; color: var(--text-muted); margin-top: -1.5rem; margin-bottom: 2rem; }

/* Card Base */
.card {
    background: var(--card-bg); border: var(--card-border); border-radius: var(--radius);
    padding: 1.5rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-fast); position: relative; overflow: hidden;
}
.card:hover {
    transform: translateY(-5px); border-color: var(--primary);
    box-shadow: 0 10px 30px -5px rgba(255, 61, 0, 0.2);
}

/* Grid Features */
.grid-features {
    display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.feature-card .icon-box {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
    font-size: 1.2rem; margin-bottom: 1rem;
}
.feature-card h4 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Grid Services (Dense) */
.grid-services {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.service-card {
    padding: 1.2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
}
.service-icon { font-size: 2rem; color: var(--primary); margin-bottom: 0.2rem; transition: 0.3s; }
.service-card:hover .service-icon { transform: scale(1.2); }
.service-card h4 { font-size: 0.95rem; color: #fff; }
.service-card p { font-size: 0.75rem; color: var(--text-muted); display: none; } 

/* Process Steps */
.process-steps { display: flex; flex-direction: column; gap: 1rem; }
.step-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.step-number {
    font-size: 1.5rem; font-weight: 800; color: var(--primary); opacity: 0.8;
    min-width: 40px;
}
.step-content h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; }

/* Testimonials */
.grid-testimonials { display: grid; gap: 1rem; }
.testimonial-card { font-style: italic; border-left: 3px solid var(--primary); }
.text-icon { color: var(--primary); font-size: 1.5rem; opacity: 0.5; margin-bottom: 0.5rem; }
.quote { color: #ddd; font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
.author { font-style: normal; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); text-align: right; }

/* =========================================
   NEW SECTION: IMAGE BREAK BANNER
   ========================================= */
.image-break-section {
    width: 100%;
    height: 250px; /* Altura fija para el banner en móvil */
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: var(--card-border);
    /* La imagen se aplica aquí */
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%; /* Enfocar la parte interesante de la foto */
    /* Filtro para oscurecerla y que encaje con la web */
    filter: grayscale(30%); 
}

/* Capa oscura encima de la imagen para que el texto se lea */
.break-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.9), rgba(5,5,5,0.5)); /* Degradado */
    display: flex;
    align-items: center; /* Centrar texto verticalmente */
    padding: 2rem;
}

.break-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    max-width: 400px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}


/* =========================================
   6. FOOTER CTA
   ========================================= */
.footer-cta { text-align: center; width: 100%; margin-top: 2rem; }
.cta-box {
    background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(40,10,10,0.4));
    padding: 3rem 1.5rem; margin-bottom: 3rem; border: 1px solid rgba(255, 61, 0, 0.3);
}
.cta-box h2 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #fff; }
.cta-buttons { margin: 2rem 0; }
.contact-info {
    display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted);
}
.contact-info i { color: var(--primary); margin-right: 5px; }

.legal-footer { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; color: #555; font-size: 0.8rem; }
.copyright { text-transform: uppercase; margin-top: 0.5rem; }

/* =========================================
   7. ANIMATIONS
   ========================================= */
@keyframes shine { 0% { background-position: 200% center; } 15% { background-position: 0% center; } 100% { background-position: 0% center; } }
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Scroll Animation Class */
.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (min-width: 600px) {
    .grid-features { grid-template-columns: 1fr 1fr; }
    .grid-services { grid-template-columns: repeat(3, 1fr); }
    .service-card p { display: block; }
    .grid-testimonials { grid-template-columns: 1fr 1fr; }
    .contact-info { flex-direction: row; justify-content: center; gap: 2rem; }
    
    /* Ajuste del nuevo banner en tablet */
    .image-break-section { height: 350px; }
    .break-overlay h3 { font-size: 2.5rem; }
}

@media (min-width: 900px) {
    .container { padding-top: 2rem; }
    .hero-section { padding-top: 6rem; }
    .guardatti-text { font-size: 5rem; }
    .grid-services { grid-template-columns: repeat(4, 1fr); }
    .process-steps { flex-direction: row; }
    .step-item { flex-direction: column; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.05); }
    .step-item:last-child { border-right: none; }

    /* Ajuste del nuevo banner en desktop */
    .image-break-section { height: 400px; }
    .break-overlay h3 { font-size: 3rem; }
}

/* =========================================
   NUEVA NAVBAR (ESTILO ADUANA ADAPTADO)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Fondo oscuro con blur para efecto cristal */
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 15px 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

/* Contenedor específico para el nav para no usar el .container general */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Marca / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.dot { color: var(--primary); }

/* Enlaces (Ocultos en móvil) */
.nav-links {
    display: none; /* Se activa en media query desktop */
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

/* Efecto de línea al hacer hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Botón Consultar */
.btn-nav {
    background: var(--primary);
    color: white;
    padding: 8px 24px;
    border-radius: 50px; /* Bordes redondos estilo juridica */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.2);
}

.btn-nav:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary);
}

/* Animación de entrada Navbar */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   AJUSTES RESPONSIVOS NAVBAR
   ========================================= */

/* Desktop: Mostrar enlaces */
@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

/* AJUSTE IMPORTANTE DEL HERO */
/* Como el navbar ahora es fijo, necesitamos empujar el contenido hacia abajo */
.hero-section {
    padding-top: 10rem !important; /* Aumentado de 6rem a 10rem */
    margin-top: 0; /* Aseguramos que no haya margenes extraños */
}