:root {
    --primary-blue: #1A2B4C;
    --accent-orange: #F26A21;
    --bg-light: #F4F5F7;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--text-light); box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 20px 0; position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { color: var(--primary-blue); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo h1 span { color: var(--accent-orange); }
.subtitle { font-size: 0.75rem; color: #777; letter-spacing: 1px; text-transform: uppercase; }
nav a { text-decoration: none; color: var(--primary-blue); font-weight: 600; margin-left: 20px; transition: color 0.3s; }
nav a:hover { color: var(--accent-orange); }
.btn-primary { background: var(--accent-orange); color: var(--text-light) !important; padding: 10px 20px; border-radius: 5px; }

/* ===== SLIDER ===== */
.hero-slider { position: relative; width: 100%; height: 500px; overflow: hidden; background-color: var(--bg-light); }
.slider-container { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; background-color: #ffffff; }

/* ===== BOTONES CON MINIATURA ===== */
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(26, 43, 76, 0.7); 
    color: var(--text-light);
    border: none; width: 50px; height: 50px; border-radius: 50%; 
    font-size: 1.5rem; display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 10; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: visible !important; 
}

.slider-btn:hover { 
    background: var(--accent-orange); 
    transform: translateY(-50%) scale(1.2); 
    box-shadow: 0 6px 20px rgba(242, 106, 33, 0.5); 
}

.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

/* LA MINIATURA FLOTANTE */
.thumbnail-preview {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 120px; 
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent-orange);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; 
    z-index: 20;
}

.slider-btn.prev .thumbnail-preview { left: 70px; }
.slider-btn.next .thumbnail-preview { right: 70px; }

.slider-btn:hover .thumbnail-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* Puntitos indicadores */
.slider-dots { position: absolute; bottom: 20px; width: 100%; text-align: center; z-index: 10; }
.dot { display: inline-block; width: 12px; height: 12px; margin: 0 8px; background: rgba(26, 43, 76, 0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active, .dot:hover { background: var(--accent-orange); transform: scale(1.3); }

/* ===== TARJETAS SIMPLES ===== */
.divisions { padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary-blue); margin-bottom: 50px; }
.grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--text-light); padding: 40px 20px; border-radius: 10px; text-align: center; text-decoration: none; color: var(--text-dark); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; border-bottom: 4px solid transparent; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 4px solid var(--accent-orange); }
.card-icon { font-size: 3rem; margin-bottom: 15px; }
.card h4 { color: var(--primary-blue); font-size: 1.2rem; margin-bottom: 10px; font-weight: 800;}
.card p { color: #666; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

/* Formulario */
.contact { background: var(--primary-blue); padding: 80px 0; color: var(--text-light); }
.contact-container { display: flex; gap: 50px; align-items: center; }
.contact-info { flex: 1; }
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; color: var(--accent-orange); }
.contact-info p { font-size: 1.1rem; opacity: 0.9; }
.lead-form { flex: 1; background: var(--text-light); padding: 40px; border-radius: 10px; color: var(--text-dark); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: var(--font-main); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent-orange); }
.btn-submit { width: 100%; padding: 15px; background: var(--accent-orange); color: var(--text-light); border: none; border-radius: 5px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: #d95b1a; }

/* Footer */
.footer { background: #111a2b; color: #8892b0; text-align: center; padding: 30px 0; font-size: 0.9rem; }

@media (max-width: 768px) {
    .hero-slider { height: 300px; }
    .contact-container { flex-direction: column; }
    .slider-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .thumbnail-preview { display: none; } 
}

/* Ajuste premium para el crédito */
.developer-credit {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    opacity: 0.8;
}
.developer-credit:hover {
    opacity: 1;
}

/* Crédito del Desarrollador */
.developer-credit {
    margin-top: 15px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.developer-credit:hover {
    opacity: 1;
}

.developer-credit a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.developer-credit a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(242, 106, 33, 0.8);
}

/* Fuerza el estilo del crédito para que no se vea azul */
.footer .developer-credit {
    margin-top: 15px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.footer .developer-credit a {
    color: var(--accent-orange) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.footer .developer-credit a:hover {
    color: #FFFFFF !important;
    text-shadow: 0 0 8px rgba(242, 106, 33, 0.8);
}

/* ===== ESTILOS REDES SOCIALES ===== */
.social-icon {
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
    margin-left: 15px;
    vertical-align: middle;
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: #E1306C !important; /* Color oficial de Instagram */
    transform: scale(1.2); /* Efecto zoom */
}

.footer-socials {
    margin: 20px 0;
}

.footer-socials a {
    color: #8892b0;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-socials a:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
}

/* Color oficial para WhatsApp al pasar el mouse */
.social-icon[title*="WhatsApp"]:hover,
.footer-socials a[title*="WhatsApp"]:hover {
    color: #25D366 !important;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}

/* Subtítulo de la sección */
.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-top: -30px; /* Lo acerca al título principal */
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== COLOR ORIGINAL PARA INSTAGRAM EN EL FOOTER ===== */
.footer-socials a[title*="Instagram"] {
    /* Degradado oficial de Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text; /* Recorta el fondo a la forma del ícono */
    -webkit-text-fill-color: transparent; /* Hace que el ícono sea transparente para mostrar el fondo */
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto al pasar el mouse: se agranda un poco y brilla */
.footer-socials a[title*="Instagram"]:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(220, 39, 67, 0.6)); /* Resplandor rosado/rojizo */
}

/* Asegurarnos de que no se aplique el color naranja genérico del footer a este ícono */
.footer-socials a[title*="Instagram"]:hover {
    color: transparent; 
}
