/* --- VARIABLES DE COLOR --- */
:root {
    --brandic-teal: #1f7a8c;
    --dark-blue: #022b3a;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --text-color: #333;
    --text-light: #6c757d;
    --white-color: #ffffff;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- RESET Y ESTILOS GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--dark-blue);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

section {
    padding: 110px 0;
}

/* SEO: Added class to replace inline style */
.bg-light-gray {
    background-color: var(--light-gray);
}

/* --- ICONOS SVG (para reutilizar) --- */
.svg-defs {
    display: none;
}

/* --- HEADER / NAVEGACIÓN --- */
.main-header {
    background-color: var(--white-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(25, 25, 25, 0.85);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px; /* Tamaño ajustado para un header más compacto */
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

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

.nav-links a:hover {
    color: var(--brandic-teal);
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--light-gray);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--brandic-teal), var(--dark-blue));
    color: var(--white-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(31, 122, 140, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(31, 122, 140, 0.6);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-card p {
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 15px;
}

.product-card .price {
    font-weight: 600;
    color: var(--brandic-teal);
    font-size: 1.1rem;
}

/* --- NUEVO: COMPARISON GRID --- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.comparison-grid-amd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.comparison-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}

.comparison-card__image-container {
    margin-bottom: 15px;
    height: 180px; /* Altura fija para alinear imágenes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comparison-card__title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark-blue);
}

.comparison-card__button {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    margin: 10px 0;
    margin-bottom: auto;
    transition: all 0.3s ease;
}

.comparison-card__button:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white-color);
}

.comparison-card__specs {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-card .comparison-card__button {
    margin-bottom: auto;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.spec-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--brandic-teal); /* Color para los iconos SVG */
}

.spec-item__details {
    display: flex;
    flex-direction: column;
}

.spec-item__label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

.spec-item__value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}


/* --- TRUST SECTION --- */
#trust-section {
    background-color: var(--light-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-item .icon {
    font-size: 3rem;
    color: var(--brandic-teal);
    margin-bottom: 15px;
    font-weight: bold;
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- FINAL CTA SECTION --- */
.final-cta {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--brandic-teal) 100%);
    color: var(--white-color);
    text-align: center;
    padding: 80px 20px;
}

.final-cta h2 {
    color: var(--white-color);
    font-size: 2.8rem;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.final-cta .cta-button {
    background: var(--white-color);
    color: var(--brandic-teal);
    box-shadow: none;
}

.final-cta .cta-button:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark-blue);
    color: #adb5bd;
    padding: 40px 0;
    text-align: center;
}

.main-footer .logo-footer img {
    height: 50px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.main-footer .footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.main-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer a:hover {
    color: var(--white-color);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
    }
    h1, .hero h1 {
        font-size: 2.5rem;
    }
    h2, .final-cta h2 {
        font-size: 2rem;
    }
    section {
        padding: 190px 0;
    }
    .comparison-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}