/* Variables de diseño corporativo (Fácil de cambiar en el futuro) */
:root {
    --primary: #13345c;       /* Azul Marino Sólido (Confianza y Logística) */
    --secondary: #134074;     /* Azul Técnico (Estructura y Menús) */
    --accent: #F26419;        /* Naranja de Seguridad (Llamadas a la acción) */
    --bg-light: #EEF4F8;      /* Gris Claro Industrial (Fondos limpios) */
    --text-dark: #222222;     /* Gris casi negro para lectura cómoda */
    --text-muted: #555555;    /* Gris para subtítulos */
}

/* Configuración básica global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Encabezado y Navegación */
.main-header {
    background-color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-container {
    display: flex;
    align-items: center;
    max-width: 200px; /* Limita el ancho máximo del área del logo */
}

.site-logo {
    width: 100%;
    height: auto;
    max-height: 80px; /* Evita que logos muy altos deformen la barra de navegación */
    object-fit: contain; /* Mantiene la proporción original de tu imagen */
    display: block;
}


.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--accent);
}

.development-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(19, 52, 92, 0.96), rgba(242, 100, 25, 0.88));
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(19, 52, 92, 0.14);
    animation: blinkBanner 1.8s ease-in-out infinite;
}

.development-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0));
    pointer-events: none;
}

.development-banner p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@keyframes blinkBanner {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 6px 18px rgba(19, 52, 92, 0.14);
    }
    50% {
        opacity: 0.82;
        box-shadow: 0 6px 22px rgba(242, 100, 25, 0.28);
    }
}

/* Sección de Bienvenida (Hero Banner) */

/* ==========================================================================
   ESTILOS COMPACTOS PARA EL BANNER DESLIZANTE (HERO SLIDER)
   ========================================================================== */

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 75vh; /* Ocupa el 75% de la altura de la pantalla */
    min-height: 500px;
    background-color: var(--primary);
    overflow: hidden;
}

/* Control de Diapositivas individuales */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Manejo de las imágenes de fondo */
.slide-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35); /* Oscurece sutilmente la foto elegida para que el texto blanco resalte */
}

/* Marcador gris si aún no elegiste la foto */
.slider-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 37, 69, 0.9), rgba(19, 64, 116, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    font-size: 1.1rem;
}

/* Textos sobre las imágenes */
.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 { font-size: 3.2rem; margin-bottom: 5px; letter-spacing: 1px; }
.hero-content h2 { font-size: 2.2rem; color: #ffffff; margin-bottom: 15px; font-weight: 700; }
.slide-text-extra { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.95; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Controles manuales (Flechas a los costados) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.slider-arrow:hover { background-color: var(--accent); }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Puntos de navegación inferiores */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover { background-color: var(--accent); }

/* Adaptabilidad a pantallas pequeñas */
@media (max-width: 768px) {
    .hero-slider-container { height: 60vh; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-content h2 { font-size: 1.7rem; }
    .slide-text-extra, .mission { font-size: 1rem; }
    .slider-arrow { padding: 10px 15px; font-size: 1.1rem; }
}



.cta-button:hover {
    background-color: #d65210;
    transform: translateY(-2px);
}

/* Títulos de sección comunes */
.section-title {
    text-align: center;
    padding: 50px 20px 20px 20px;
}

.section-title h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Grilla de Compromisos */
.institution-section {
    background-color: #ffffff;
    padding-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.value-card {
    background-color: var(--bg-light);
    padding: 30px 25px;
    border-radius: 6px;
    border-top: 4px solid var(--primary);
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

/* Grilla de los 12 Servicios Destacados */
.services-section {
    background-color: var(--bg-light);
    padding-bottom: 70px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 5px solid var(--accent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

.service-link:hover {
    text-decoration: underline;
}

/* Pie de Página Institucional */
.main-footer {
    background-color: var(--primary);
    color: #ffffff;
    padding: 50px 5% 20px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-contact h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
    color: var(--accent);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Evita que se amontone en teléfonos celulares */
    gap: 20px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-copyright-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Contenedor de tu firma de desarrollador */
.developer-signature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.developer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: var(--accent); /* Cambia al color naranja de seguridad al pasar el mouse */
}

/* Control estricto del tamaño de tu logotipo en el pie de página */
.developer-logo {
    height: 24px; /* Ajusta esta altura para que quede alineado perfecto con el texto */
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Removimos los cambios drásticos al pasar el mouse para mantener la estabilidad visual */
.developer-link:hover .developer-logo {
    transform: scale(1.05); /* Un sutil efecto de agrandado al pasar el mouse (opcional) */
    transition: transform 0.2s ease;
}

/* Ajuste de adaptabilidad móvil */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .developer-signature {
        flex-direction: column;
        gap: 5px;
    }
}


/* Adaptabilidad para pantallas chicas */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
    }
    .navbar a {
        margin: 0 10px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content h2 {
        font-size: 1.4rem;
    }
}
/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA DE CATÁLOGO
   ========================================================================== */

.catalog-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
    gap: 30px;
}

/* Panel Lateral */
.filters-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filters-sidebar h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.filter-menu {
    list-style: none;
}

.filter-menu li {
    margin-bottom: 10px;
}

.filter-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: bold;
}

/* Grilla de Productos de venta */
.products-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.product-image-placeholder {
    height: 180px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.9rem;
    font-style: italic;
    border-bottom: 1px solid #e1e8ed;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-subcategory {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-info h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-cta {
    background-color: var(--secondary);
    color: white;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.product-cta:hover {
    background-color: var(--primary);
}

/* Adaptabilidad del Catálogo en Móviles */
@media (max-width: 768px) {
    .catalog-container {
        flex-direction: column;
    }
    .filters-sidebar {
        width: 100%;
    }
    .filter-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 10px;
    }
    .filter-menu li {
        margin-bottom: 0;
    }
    .filter-btn {
        padding: 8px 15px;
    }
}
/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA DE CONTACTO
   ========================================================================== */

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
    gap: 40px;
}

/* Panel de Información Izquierdo */
.contact-info-panel {
    flex: 1;
    background-color: var(--primary);
    color: #ffffff;
    padding: 40px;
    border-radius: 8px;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.panel-subtitle {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
}

.info-item a:hover {
    color: var(--accent);
}

/* Panel del Formulario Derecho */
.contact-form-panel {
    flex: 1.5;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.contact-form-panel h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.contact-form-panel p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Elementos del Formulario */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd6dd;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--secondary);
}

/* Mensajes de Validación de Errores */
.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    font-weight: 500;
    display: none;
    margin-top: 5px;
}

.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.form-group.invalid .error-message {
    display: block;
}

/* Botón de Envío */
.submit-form-btn {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-form-btn:hover {
    background-color: #d65210;
}

/* Alerta de Éxito Oculta por defecto */
.success-alert {
    display: none;
    background-color: #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    border-left: 5px solid #38a169;
    font-size: 0.95rem;
}

/* Adaptabilidad para móviles */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
}
/* ==========================================================================
   💳 SECCIÓN MÉTODOS DE PAGO - ROSTEC
   ========================================================================== */
.payment-methods-section {
    background-color: #161b22; /* Fondo oscuro a tono con el sitio */
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 210, 255, 0.1);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

.payment-methods-section h3 {
    color: #00d2ff; /* Tu azul neón o el color de acento de ROSTec */
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-card {
    background: #0b0f19;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    border-color: #39ff14; /* Destello verde neón al pasar el mouse */
}

.payment-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.payment-card h4 {
    color: #e6edf3;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.payment-card p {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Enlace del Footer */
.footer-portfolio-link {
    color: #39ff14; /* Tu verde neón característico */
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s ease;
}

.footer-portfolio-link:hover {
    text-shadow: 0 0 8px #39ff14;
    text-decoration: underline;
}

