/* Optimizaciones de Visualización Completa - index.php */

/* Asegurar que todo el contenido sea visible */
html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

main {
    width: 100%;
    display: block;
    clear: both;
    position: relative;
    z-index: 1;
}

/* Hero Slider - Los estilos principales están en styles.css para evitar conflictos */
/* No duplicar estilos aquí */

.slider-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(24, 28, 42, 0.6);
    border-radius: 16px;
}

/* Secciones de Servicios */
.servicios {
    width: 100%;
    padding: 80px 5%;
    box-sizing: border-box;
    display: block;
}

.servicio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-item {
    padding: 30px;
    border-radius: 12px;
    background: rgba(35, 40, 74, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.servicio-item:hover {
    background: rgba(35, 40, 74, 1);
    border-color: rgba(0, 242, 255, 0.6);
    transform: translateY(-5px);
}

.servicio-item h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #00f2ff;
}

.servicio-item p {
    flex: 1;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-more {
    align-self: flex-start;
    color: #00f2ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.btn-more:hover {
    color: white;
    text-decoration: underline;
}

/* Productos Destacados */
.productos-destacados {
    width: 100%;
    padding: 80px 5%;
    box-sizing: border-box;
    display: block;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
}

.producto-card {
    background: rgba(35, 40, 74, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    border-color: rgba(0, 242, 255, 0.6);
    transform: translateY(-5px);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-info h4 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: white;
}

.producto-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.producto-precio {
    font-size: 1.3rem;
    color: #00f2ff;
    font-weight: 600;
    margin: 15px 0 0 0;
}

/* CTA Section */
.cta-section {
    width: 100%;
    padding: 80px 5%;
    box-sizing: border-box;
    text-align: center;
    display: block;
}

.cta-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.main-footer {
    width: 100%;
    padding: 60px 5%;
    box-sizing: border-box;
    background: rgba(20, 22, 35, 0.9);
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    margin: 0 0 20px 0;
    color: #00f2ff;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    margin-bottom: 10px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-col a:hover {
    color: #00f2ff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    padding-top: 30px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slider-content {
        padding: 25px;
    }

    .servicio-grid,
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .servicios,
    .productos-destacados,
    .cta-section {
        padding: 60px 5%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Animación de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: slideInUp 0.6s ease-out forwards;
}

/* Asegurar que todo tiene display correcto */
section,
footer,
main,
article,
aside {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
