@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-bg: #f8f9fa; 
  --color-surface: #ffffff; 
  --color-primary: #1864ab; /* Azul Cobalto */
  --color-primary-light: rgba(24, 100, 171, 0.1);
  --color-primary-shadow: rgba(24, 100, 171, 0.4); 
  --color-text: #212529; 
  --color-muted: #6c757d; 
  --color-border: #e9ecef;
  --footer-dark: #0a2540; 
  
  --font-main: 'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-main); background: var(--color-bg); color: var(--color-text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ANIMACIONES GLOBALES */
.fade-in-load { animation: globalFadeIn 1s ease-out forwards; }
@keyframes globalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.highlight { color: var(--color-primary); }
section { padding: 6rem 0; }
.section-subtitle { color: var(--color-muted); margin-bottom: 3rem; }

/* SOMBRAS AZULES */
.blue-shadow { box-shadow: 0 15px 35px var(--color-primary-shadow); border: 2px solid transparent; transition: var(--transition); }
.blue-shadow:hover { box-shadow: 0 20px 45px rgba(24, 100, 171, 0.6); transform: translateY(-5px); border-color: var(--color-primary); }
.blue-shadow-hover { transition: var(--transition); }
.blue-shadow-hover:hover { box-shadow: 0 15px 30px var(--color-primary-shadow); z-index: 10; transform: translateY(-5px); border-radius: 8px; }

/* HEADER DINÁMICO COMPUTADORA */
.site-header { position: fixed; width: 100%; top: 0; background: transparent; transition: all 0.4s ease; z-index: 1000; padding: 15px 0; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); padding: 5px 0; border-bottom: 1px solid var(--color-border); }
.site-header .logo strong, .site-header .main-nav a { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.site-header.scrolled .logo strong, .site-header.scrolled .main-nav a { color: var(--color-text); text-shadow: none; }
.site-header .logo span { color: #ddd; }
.site-header.scrolled .logo span { color: var(--color-muted); }
.site-header.scrolled .main-nav a:hover { color: var(--color-primary); }

.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo strong { display: block; font-size: 1.1rem; }
.logo span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

.main-nav ul { display: flex; gap: 1.5rem; list-style: none !important; margin: 0; padding: 0; }
.main-nav li { list-style-type: none !important; }
.main-nav li::before, .main-nav li::after { content: none !important; display: none !important; }
.main-nav a { font-size: 0.9rem; font-weight: 500; transition: var(--transition); display: block; }

/* BOTÓN HAMBURGUESA */
.mobile-menu-btn { display: none; background: transparent; border: none; color: #fff; cursor: pointer; z-index: 1001; }
.site-header.scrolled .mobile-menu-btn { color: var(--color-text); }

/* BOTONES */
.btn-primary, .btn-secondary, .btn-cta { display: inline-block; padding: 0.8rem 1.8rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; transition: var(--transition); text-align: center; cursor: pointer; border: none; }
.btn-primary, .btn-cta { background: var(--color-primary); color: #fff; box-shadow: 0 4px 15px var(--color-primary-shadow); }
.btn-primary:hover, .btn-cta:hover { background: #14528c; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(24, 100, 171, 0.6); }
.btn-secondary { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-light); }

/* HERO */
.hero-section { height: 100vh; display: flex; align-items: center; background: url('https://i.postimg.cc/nLn8SWp6/IMG-6276-HDR.jpg') center/cover fixed; position: relative; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(248,249,250,1) 95%); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding-top: 70px; }
.hero-content h1 { font-size: 3.8rem; margin-bottom: 1rem; line-height: 1.2; font-weight: 800; color: #1a1a1a; text-shadow: 0 0 20px rgba(255,255,255,0.8); }
.hero-content p { font-size: 1.15rem; color: #333; margin-bottom: 2.5rem; font-weight: 500; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* PROBLEMA Y BENEFICIOS */
.problem-desc { max-width: 600px; margin: 1rem auto 3rem; color: var(--color-muted); font-size: 1.1rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.benefit-card { background: var(--color-surface); padding: 2.5rem 1.5rem; border-radius: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); }
.benefit-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--color-primary-shadow); border-color: var(--color-primary-light); }
.benefit-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* SLIDER ANTES / DESPUES */
.before-after-container { max-width: 800px; margin: 0 auto; position: relative; height: 450px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); cursor: ew-resize; user-select: none; -webkit-user-drag: none; border: 3px solid white; }
.before-after-container img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; pointer-events: none; }
.img-before-wrapper { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; z-index: 2; border-right: 2px solid white; box-shadow: 5px 0 25px rgba(0,0,0,0.5); }
.img-before-wrapper img { width: 800px; max-width: none; }
.slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background-color: transparent; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; }
.slider-arrows { width: 36px; height: 36px; background-color: white; color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* SOBRE MÍ */
.about-section { background: var(--color-surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-image img { border-radius: 8px; width: 100%; max-width: 450px; margin: 0 auto; }
.tagline { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 0.5rem; }
.about-content h2 { margin-bottom: 1.5rem; font-size: 2.5rem; }
.about-content p { margin-bottom: 1rem; color: var(--color-muted); }
.copy-hook { font-weight: 600; font-size: 1.1rem; color: var(--color-text); border-left: 3px solid var(--color-primary); padding-left: 1rem; margin-top: 2rem; font-style: italic; }

/* PARALLAX */
.parallax-divider { height: 350px; background: url('https://i.postimg.cc/8cvJXcbv/IMG-6279-HDR.jpg') center/cover fixed; position: relative; }
.parallax-divider::after { content: ''; position: absolute; inset: 0; background: rgba(24, 100, 171, 0.3); }

/* PORTAFOLIO */
.filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.filter-btn { background: transparent; color: var(--color-muted); border: none; font-size: 1rem; font-weight: 500; cursor: pointer; padding: 0.5rem 1rem; border-bottom: 2px solid transparent; transition: var(--transition); }
.filter-btn:hover { color: var(--color-text); }
.filter-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.gallery-item { height: 280px; border-radius: 8px; overflow: hidden; cursor: zoom-in; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; align-items: center; justify-content: center; opacity: 1; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: 5px; box-shadow: 0 0 40px var(--color-primary-shadow); object-fit: contain; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001; transition: color 0.3s; }
.close-lightbox:hover { color: var(--color-primary); }
.lightbox-nav { position: absolute; top: 50%; left: 0; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 20px; pointer-events: none; }
.lightbox-nav button { background: rgba(255,255,255,0.1); border: none; color: white; font-size: 30px; padding: 15px 20px; cursor: pointer; pointer-events: auto; border-radius: 5px; transition: background 0.3s; }
.lightbox-nav button:hover { background: rgba(24, 100, 171, 0.5); }

/* TESTIMONIOS CARRUSEL (MARQUESINA INFINITA) */
.testimonials-section { background: var(--color-surface); padding-top: 6rem; padding-bottom: 2rem; overflow: hidden; }
.carousel-wrapper { width: 100%; overflow: hidden; position: relative; margin-top: 3rem; padding: 2rem 0; }
.carousel-wrapper::before, .carousel-wrapper::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none; }
.carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--color-surface), transparent); }
.carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--color-surface), transparent); }

.carousel-track { display: flex; width: max-content; animation: scrollMarquee 60s linear infinite; }
.carousel-track:hover { animation-play-state: paused; } 

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testi-card { background: var(--color-bg); width: 350px; margin-right: 2rem; padding: 2rem; border-radius: 12px; border: 1px solid var(--color-border); display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition); box-shadow: var(--shadow-sm); }
.testi-card:hover { box-shadow: 0 15px 30px var(--color-primary-shadow); transform: translateY(-5px); border-color: var(--color-primary); }
.testi-content { font-style: italic; color: var(--color-text); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }
.testi-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--color-border); padding-top: 1rem; }
.testi-author img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-primary); box-shadow: var(--shadow-sm); }
.testi-author h4 { font-size: 1rem; color: var(--color-text); margin-bottom: 0.2rem; }
.testi-author span { font-size: 0.8rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}

/* PRECIOS Y GLOW */
.pricing-section { background: var(--color-surface); }

/* AQUÍ SE AÑADIÓ EL MARGEN SUPERIOR PARA ARREGLAR EL CORTE DEL GLOW */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; margin-top: 3rem; } 

.copy-hook-center { font-weight: 600; font-size: 1.1rem; color: var(--color-text); font-style: italic; margin-bottom: 2rem; }

.pricing-card { background: var(--color-bg); padding: 3rem 2rem; border-radius: 12px; border: 1px solid var(--color-border); position: relative; display: flex; flex-direction: column; transition: var(--transition); }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--color-text); }
.pricing-card .price { font-size: 3.5rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.5rem; line-height: 1; }
.pricing-card .subtitle { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.pricing-card .mini-copy { font-size: 0.8rem; font-style: italic; color: var(--color-primary); margin-bottom: 1rem; }
.pricing-card ul { list-style: none; margin-bottom: 2.5rem; text-align: left; flex-grow: 1; }
.pricing-card li { margin-bottom: 0.8rem; font-size: 0.95rem; color: var(--color-text); position: relative; padding-left: 1.5rem; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }
.pricing-card button { margin-top: auto; }

/* El badge se baja un poco para no chocar tanto */
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff; padding: 0.4rem 1.2rem; border-radius: 20px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; }

@keyframes breatheGlow {
  0% { box-shadow: 0 0 15px var(--color-primary-shadow); transform: scale(1.03); border-color: var(--color-primary); }
  50% { box-shadow: 0 0 40px rgba(24, 100, 171, 0.7); transform: scale(1.05); border-color: #14528c; }
  100% { box-shadow: 0 0 15px var(--color-primary-shadow); transform: scale(1.03); border-color: var(--color-primary); }
}
.glow-effect { animation: breatheGlow 4s infinite ease-in-out; background: #fff; z-index: 2; }

/* MODAL DE DETALLES */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(10, 15, 23, 0.9); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; }
.modal.active { display: flex; align-items: center; justify-content: center; opacity: 1; }
.modal-content { background-color: #f8f9fa; color: var(--color-text); border: 2px solid var(--color-primary); border-radius: 12px; max-width: 700px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; padding: 2.5rem; box-shadow: 0 25px 50px -12px var(--color-primary-shadow); }
.close-modal { color: var(--color-muted); float: right; font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--color-primary); }
.modal-content h2 { font-size: 2rem; display: inline-block; margin-right: 15px; }
.modal-price { font-size: 2rem; color: var(--color-primary); font-weight: 800; display: inline-block; margin-bottom: 1.5rem; }
.modal-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 2rem; border-radius: 8px; overflow: hidden; }
.modal-gallery img { width: 100%; height: 120px; object-fit: cover; }
.modal-info h3 { color: var(--color-primary); font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.modal-info ul { list-style: none; margin-bottom: 2rem; }
.modal-info li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; color: var(--color-text); font-weight: 500; }
.modal-info li::before { content: '•'; position: absolute; left: 0; color: var(--color-primary); font-size: 1.5rem; line-height: 1; top: -4px;}
.modal-terms { background: #fff; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.modal-terms p { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 0.8rem; }
.modal-terms p:last-child { margin-bottom: 0; }
.modal-terms strong { color: var(--color-text); }

/* FAQ */
.faq-section { background: var(--color-bg); }
.faq-container { max-width: 750px; margin: 3rem auto 0; }
.faq-item { margin-bottom: 1rem; background: var(--color-surface); border-radius: 8px; border: 1px solid var(--color-border); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; text-align: left; background: transparent; border: none; color: var(--color-text); font-size: 1.05rem; font-weight: 600; padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { background: var(--color-bg); color: var(--color-primary); }
.faq-question::after { content: '+'; color: var(--color-primary); font-size: 1.5rem; font-weight: 400; transition: transform 0.3s; }
.faq-question.active { color: var(--color-primary); border-bottom: 1px solid var(--color-border); }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--color-surface); }
.faq-answer p { padding: 1.5rem; color: var(--color-muted); font-size: 0.95rem; }

/* FOOTER AZUL CON DEGRADADO */
.gradient-footer { 
  background: linear-gradient(to bottom, #ffffff 0%, var(--color-primary) 20%, var(--footer-dark) 90%); 
  color: #fff; 
  padding: 6rem 0 0 0; 
  margin-top: -2rem; 
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.logo-footer strong { color: #fff; font-size: 1.4rem; }
.logo-footer span { color: #e0e0e0; }
.brand-col p { color: #f0f0f0; margin-top: 1rem; font-size: 0.95rem; max-width: 300px; }
.links-col h4, .contact-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: #fff; border-bottom: 2px solid rgba(255,255,255,0.3); padding-bottom: 5px; display: inline-block;}
.links-col ul { list-style: none; }
.links-col li { margin-bottom: 0.8rem; }
.links-col a { color: #e0e0e0; transition: var(--transition); }
.links-col a:hover { color: #fff; padding-left: 8px; font-weight: bold; }
.contact-col p { color: #e0e0e0; margin-bottom: 0.8rem; font-size: 0.95rem; }
.contact-col a { color: #fff; font-weight: 600; }
.contact-col a:hover { text-decoration: underline; }
.instagram-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 8px 15px; border-radius: 5px; transition: var(--transition); }
.instagram-link:hover { background: rgba(255,255,255,0.1); border-color: #fff; text-decoration: none !important; }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 1.5rem 0; text-align: center; color: #ccc; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .about-grid, .pricing-grid { grid-template-columns: 1fr; gap: 3rem; }
  .glow-effect { animation: none; transform: scale(1); box-shadow: 0 10px 30px var(--color-primary-shadow); border-color: var(--color-primary); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-col p { margin: 1rem auto; }
  .links-col h4, .contact-col h4 { margin: 0 auto 1.5rem auto; }
}

@media (max-width: 800px) {
  .img-before-wrapper img { width: 100vw; }
  .modal-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-wrap { flex-direction: row; height: 60px; padding: 0; }
  .site-header { background: rgba(255,255,255,0.95); padding: 5px 0; border-bottom: 1px solid var(--color-border); }
  .site-header .logo strong, .site-header .main-nav a { color: var(--color-text); text-shadow: none;}
  .site-header .logo span { color: var(--color-muted); }
  .logo strong { font-size: 1rem; }
  .logo span { font-size: 0.6rem; }
  
  .btn-cta { display: none; } 
  .mobile-menu-btn { display: block; padding: 10px; color: var(--color-text); }
  
  .main-nav { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
  .main-nav.active { max-height: 400px; border-top: 1px solid var(--color-border); }
  
  .main-nav ul { flex-direction: column; gap: 0; text-align: center; padding: 1rem 0; list-style: none !important; }
  .main-nav li { width: 100%; list-style: none !important; }
  .main-nav a { display: block; padding: 12px 20px; color: var(--color-text) !important; font-size: 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); text-shadow: none !important; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; padding: 0 20px; }
  .hero-actions a { width: 100%; }
  .benefits-grid { grid-template-columns: 1fr; gap: 1rem; }
  .before-after-container { height: 250px; }
  
  .carousel-wrapper::before { width: 30px; }
  .carousel-wrapper::after { width: 30px; }
  .testi-card { width: 300px; padding: 1.5rem; }
}
