:root {
    --primary-blue: #003366;
    --secondary-yellow: #FFCC00;
    --accent-yellow: #E6B800;
    --dark-text: #1A1A1A;
    --light-gray: #F4F7F6;
    --white: #FFFFFF;
    --border-color: #DDDDDD;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.8;
    color: var(--dark-text);
    background-color: var(--white);
}

/* Header & Navigation */
header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--secondary-yellow);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), #ccc;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 10%;
    margin-bottom: 0;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Sections */
.section {
    padding: 5rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--secondary-yellow);
    margin: 15px auto 0;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border-bottom: 5px solid var(--secondary-yellow);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-yellow);
}

.btn:hover {
    background: transparent;
    color: var(--secondary-yellow);
}

.btn-blue {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-blue:hover {
    background: transparent;
    color: var(--primary-blue);
}

/* Placeholders */
.placeholder-img {
    background-color: #feffff;
    border: 3px dashed #feffff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #feffff;
    margin: 1.5rem 0;
    width: 100  %;
    min-height: 550px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 5rem 10% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--secondary-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Catálogo Interactivo */
.category-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 5rem;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
    border: 3px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    min-height: 180px;
    max-height: 220px;
    transition: all 0.3s ease;
}

.carousel-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.carousel-item {
    flex: 0 0 70px;
    height: 70px;
    background-color: #e9ecef;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    text-align: center;
    padding: 6px;
    transition: all 0.3s ease;
    font-weight: bold;
    color: var(--dark-text);
}

.carousel-item:hover {
    border-color: var(--secondary-yellow);
    background-color: #fff9e6;
    transform: scale(1.05);
}

.carousel-item.active {
    border-color: var(--secondary-yellow);
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

.product-details {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-yellow);
}

.product-details h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-details p {
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .category-container {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.2rem; }
    nav { flex-direction: column; padding: 1rem; }
    .nav-links { margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
    .nav-links li { margin: 5px 10px; }
}
