﻿/* --- Variables y Reset --- */
:root {
    --primary-color: #e63946; /* Rojo intenso Iron Jaw */
    --primary-hover: #c1121f;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #333;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Utilidades --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-dark {
    background-color: #0a0a0a;
}

.text-accent {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    color: white !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Un gradiente oscuro para simular fondo profesional */
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    margin-top: 0; 
}

.hero-content {
    display: flex; /* Habilita el centrado flexible */
    flex-direction: column; /* Apila el logo, H1, P, y botones verticalmente */
    align-items: center; /* Centra horizontalmente todos los elementos (CRUCIAL para el logo) */
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 150px 20px 150px 20px; /* Más espacio arriba y abajo para evitar solapamiento */
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- About --- */
#about {
    margin-top: 50px; /* Empuja la sección hacia abajo 50 píxeles */
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary-color);
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #333;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- Productos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card.highlight {
    border: 1px solid var(--primary-color);
    background: linear-gradient(to bottom right, #1e1e1e, #2a0a0a);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tag {
    background: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    display: inline-block;
}

/* --- Beneficios --- */
.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Galería --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    color: #555;
    border: 1px solid var(--border-color);
    transition: opacity 0.3s;
}

.gallery-item:hover {
    opacity: 0.8;
}

/* --- Testimonios --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Contacto --- */
.contact-section {
    background-color: var(--bg-card);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-msg {
    color: var(--primary-color);
    font-size: 0.85rem;
    display: none; /* Oculto por defecto */
    margin-top: 5px;
}

.success-msg {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 10px;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* --- Footer --- */
footer {
    background: black;
    padding: 2rem 0;
    text-align: center;
    color: #666;
}

.socials {
    margin-top: 1rem;
}

.socials a {
    color: #666;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: white;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-outline {
        margin-left: 0;
    }

}
/* --- ESTILOS DE PRODUCTO DETALLADO (Punto 2) --- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Cambiamos a esta parrilla para productos grandes */
    gap: 40px;
    padding-top: 20px;
}

.product-image {
    flex: 1; /* Ocupa la mitad del espacio */
    max-width: 50%;
    overflow: hidden;
    max-height: 350px; /* <--- Mantenemos el LÍMITE SÓLO para la imagen */
}

.product-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
}
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    flex: 1; /* Ocupa la mitad del espacio */
    max-width: 50%;
    overflow: hidden;
    height: 100%; /* <--- CORRECCIÓN CLAVE 2: Fuerza a respetar la altura del padre */
}

.product-image img {
    width: 100%;
    height: 100%; /* <--- Lo mantenemos, pero ahora su 100% está limitado a 350px */
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse */
}

.product-details {
    flex: 1;
    padding: 25px;
}

.product-details h3 {
    color: var(--color-accent); /* Color rojo/naranja del diseño */
    margin-top: 0;
}

.specs {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.specs li {
    margin-bottom: 8px;
    font-size: 1em;
    font-weight: 500;
}

.specs li i {
    color: var(--color-accent);
    margin-right: 10px;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.price {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color); /* CAMBIO CLAVE: Usamos el rojo intenso Iron Jaw */
}
/* --- NUEVO ESTILO: BOTÓN COMO ENLACE DE TEXTO (Punto 3) --- */
.price-link {
    /* 1. Resetear el estilo de botón para que parezca texto */
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    text-decoration: none; /* Quitar el subrayado por defecto */
    
    /* 2. Coincidir con el estilo del precio */
    font-size: 1.8em;
    font-weight: bold;
    color: #fff; /* Hacemos que coincida con el precio, que ahora es blanco */
    line-height: 1.8em; /* Ayuda a la alineación vertical con el precio */
    
    /* 3. Efecto visual para indicar que es clickeable */
    transition: color 0.2s ease;
}

.price-link:hover {
    color: var(--primary-color); /* El color de acento (rojo) al pasar el ratón */
    text-decoration: underline; /* Subrayado al pasar el ratón */
}






