/* Minimalist Design Variables with subtle dynamics */
:root {
    --primary: #005bb5;
    --secondary: #00aaff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --bg-light: #f7f9fc;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-dark); line-height: 1.6; background: var(--white); scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* Animations */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-icon { animation: spin-slow 12s linear infinite; color: var(--primary); }
.hidden { opacity: 0; transform: translateY(30px); transition: 0.8s all ease-out; }
.show { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; transition: 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #004488; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Navbar */
.navbar { border-bottom: 1px solid #eaeaea; padding: 15px 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); position: sticky; top: 0; z-index: 100; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero { padding: 100px 0 80px; background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%); }
.hero h1 { font-size: 3.2rem; margin-bottom: 15px; letter-spacing: -1px; color: var(--primary); }
.hero p { color: var(--text-gray); font-size: 1.2rem; margin-bottom: 25px; }
.hero-features { display: flex; gap: 15px; justify-content: center; margin-bottom: 35px; flex-wrap: wrap; }
.feature-tag { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 20px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0, 91, 181, 0.1); border: 1px solid #e0ebf5; font-weight: 600; color: var(--text-dark); }
.feature-tag i { color: var(--secondary); font-size: 1.2rem; }
.hero-actions { display: flex; gap: 15px; justify-content: center; }

/* General Sections */
section { padding: 80px 0; }
section h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--text-dark); }

/* Gallery */
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.gallery-item { position: relative; height: 250px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid #eaeaea; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.gallery-item img, .preview-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; background: rgba(0, 91, 181, 0.85); border-radius: 50%; color: var(--white); font-size: 20px; opacity: 0; transition: 0.3s; z-index: 2; pointer-events: none; }
.gallery-item:hover .play-overlay { opacity: 1; }

/* Lightboxes */
.lightbox { position: fixed; top: 0; left: 0; z-index: 2000; display: none; justify-content: center; align-items: center; width: 100%; height: 100%; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(5px); }
.lightbox.active { display: flex; animation: fadeIn 0.3s ease; }

.lightbox-content { max-width: 90%; max-height: 85%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* Ajuste específico para centrar y adaptar los videos (verticales/horizontales) */
.video-wrapper { 
    width: 90%; 
    max-width: 800px; 
    display: flex; 
    justify-content: center;
    border-radius: 8px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); 
}
.video-wrapper video { 
    width: 100%; 
    max-height: 80vh; 
    object-fit: contain; 
    border-radius: 8px; 
}

.close-lightbox, .close-video { position: absolute; top: 20px; right: 25px; z-index: 2001; color: var(--white); font-size: 40px; cursor: pointer; transition: 0.2s; }
.close-lightbox:hover, .close-video:hover { color: var(--secondary); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-gray); display: flex; align-items: center; gap: 10px;}
.contact-info i { color: var(--primary); width: 20px; text-align: center; }

/* Form */
.minimal-form { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eaeaea; }
.minimal-form input, .minimal-form select, .minimal-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
.minimal-form input:focus, .minimal-form select:focus, .minimal-form textarea:focus { outline: none; border-color: var(--primary); }

/* Floating Container */
.floating-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; pointer-events: none; }
.main-float-btn { pointer-events: auto; }
.main-float-btn { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; box-shadow: 0 5px 20px rgba(0, 91, 181, 0.4); color: white; display: flex; justify-content: center; align-items: center; font-size: 26px; cursor: pointer; transition: 0.3s; position: relative; }
.main-float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(0, 91, 181, 0.6); }
.floating-container.active .main-float-btn { background: var(--text-dark); transform: rotate(90deg); }
.main-float-btn .close-icon { display: none; }
.main-float-btn .show-icon { display: block; }
.floating-container.active .main-float-btn .close-icon { display: block; transform: rotate(-90deg); }
.floating-container.active .main-float-btn .show-icon { display: none; }
.floating-options { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(20px); transition: 0.3s ease; display: flex; flex-direction: column; gap: 15px; }
.floating-container.active .floating-options { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.float-opt { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.lang-label { padding: 6px 14px; background: white; color: var(--text-dark); font-weight: 700; font-size: 0.9rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); }
.mini-btn { width: 50px; height: 50px; background: var(--text-dark); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: 2px solid white; transition: 0.2s; }
.float-opt:hover .mini-btn { transform: scale(1.1); }

/* Footer */
footer { padding: 40px 0; background: var(--text-dark); color: var(--white); font-size: 0.95rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.social-links { display: flex; gap: 25px; justify-content: center; }
.social-links a { color: var(--white); font-size: 1.5rem; transition: color 0.3s; }
.social-links a:hover { color: var(--secondary); }
.copy a { color: var(--secondary); text-decoration: none; font-weight: 600; margin: 0 5px; }
.copy a:hover { text-decoration: underline; }
.dev-link { color: var(--secondary); }

/* --- Nuevas Secciones Añadidas --- */

/* Services Grid */
.subtitle { color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--white); padding: 40px 20px; border-radius: 12px; text-align: center; border: 1px solid #eaeaea; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 91, 181, 0.1); border-color: #d0e6f8; }
.service-card .icon-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 10px; color: var(--text-dark); }
.service-card p { color: var(--text-gray); }

/* Review Action Box */
.review-action-box { margin-top: 50px; padding: 30px; background: var(--white); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #eaeaea; }
.review-action-box h3 { margin-bottom: 10px; color: var(--text-dark); }
.review-action-box p { margin-bottom: 20px; color: var(--text-gray); }

/* Trust Banner */
.trust-banner { background: linear-gradient(135deg, #004488 0%, #001f3f 100%); color: var(--white); padding: 80px 0; }
.trust-banner h2 { color: var(--white); margin-bottom: 15px; }
.trust-banner p { color: #d0e6f8; margin-bottom: 40px; font-size: 1.1rem; }
.stats-grid { display: flex; justify-content: center; gap: 50px; margin-bottom: 40px; flex-wrap: wrap; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--secondary); margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.quote { font-style: italic; font-size: 1.2rem; color: var(--white); margin-bottom: 30px; }
.btn-outline-light { border: 2px solid var(--white); color: var(--white); background: transparent; padding: 12px 30px; border-radius: 6px; font-weight: 600; }
.btn-outline-light:hover { background: var(--white); color: #001f3f; }

/* Contact Details updates */
.info-details a { color: var(--primary); font-weight: 600; }
.info-details a:hover { text-decoration: underline; }

/* File Input */
.file-input-wrapper { margin-bottom: 15px; text-align: left; }
.file-input-wrapper label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.file-input-wrapper small { color: var(--text-gray); font-weight: normal; margin-left: 5px; }
.file-input-wrapper input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #ccc; border-radius: 6px; background: var(--bg-light); color: var(--text-gray); cursor: pointer; }
.file-input-wrapper input[type="file"]::file-selector-button { background: var(--primary); border: none; padding: 8px 15px; border-radius: 4px; color: white; font-weight: 600; margin-right: 15px; cursor: pointer; }

/* --- Estilos para la Nueva Galeria (Pestañas y Botón Ver Más) --- */
.gallery-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { padding: 10px 25px; border-radius: 30px; border: 2px solid var(--primary); background: transparent; color: var(--primary); font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: var(--white); }
.mt-4 { margin-top: 30px; }
.gallery-content { animation: fadeIn 0.4s ease-out; }

/* Logo Minimalista en Hero */
.hero-logo { width: 180px; height: auto; max-height: 180px; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 91, 181, 0.2); margin-bottom: 25px; border: 4px solid var(--white); background: var(--white); }


/* Responsive (con la galería de imágenes agregada) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-actions, .hero-features { flex-direction: column; align-items: center; }
    .feature-tag { width: 100%; justify-content: center; }
    .stats-grid { gap: 30px; flex-direction: column; }
    
    /* Configuración de galería en móvil: 2 columnas */
    .grid-gallery { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    .gallery-item { 
        height: 200px; 
    }
}

@media (max-width: 480px) {
    /* Ajuste extra de altura de imágenes para móviles más pequeños */
    .gallery-item { 
        height: 160px; 
    }
}