/* Variables CSS para colores */
:root {
    --primary-bg-dark: #1a1a2e; /* Fondo oscuro principal */
    --secondary-bg-light: #f4f4f4; /* Fondo claro para secciones claras */
    --text-color-light: #ffffff; /* Texto claro sobre fondos oscuros */
    --text-color-dark: #333333; /* Texto oscuro sobre fondos claros */
    --accent-color-purple: #8a2be2; /* Púrpura de acento como en algunos mockups */
    --button-hover-dark: #6e1ad0;
    --card-bg-dark: #2a2a4a;
    --card-bg-light: #ffffff;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--secondary-bg-light); /* Fondo general claro */
    color: var(--text-color-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--primary-bg-dark);
    color: var(--text-color-light);
    padding: 15px 0;
    border-bottom: 3px solid var(--accent-color-purple); /* Borde sutil del color de acento */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Ajusta el tamaño del logo */
    margin-right: 10px;
}

.logo span {
    font-size: 1.8em;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color-purple);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions input[type="text"] {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    margin-right: 15px;
    background-color: #3a3a5a;
    color: var(--text-color-light);
}

.header-actions input::placeholder {
    color: #ccc;
}

.btn-primary {
    background-color: var(--accent-color-purple);
    color: var(--text-color-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--button-hover-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color-purple);
    padding: 12px 25px;
    border: 2px solid var(--accent-color-purple);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-color-purple);
    color: var(--text-color-light);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-bg-dark); /* Fondo oscuro como en el mockup */
    color: var(--text-color-light);
    padding: 80px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    overflow: hidden; /* Para contener las imágenes de hero */
}

.hero-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    gap: 40px;
    flex-wrap: wrap; /* Para responsive básico */
}

.hero-text {
    flex: 1;
    min-width: 300px;
    z-index: 1; /* Asegura que el texto esté por encima de las imágenes */
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px; /* Ajusta la altura de las imágenes de los teléfonos */
    object-fit: contain;
    position: relative;
    z-index: 1;
    /* Efecto para que se vean como superpuestas o flotando un poco */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    margin: 0 10px;
}

/* Products and Accessories Sections */
.products-section, .accessories-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--secondary-bg-light); /* Fondo claro para estas secciones */
}

.products-section h2, .accessories-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 o 4 columnas dependiendo del tamaño */
    gap: 30px;
    justify-content: center;
    padding-top: 20px;
}

.product-card {
    background-color: var(--card-bg-light); /* Tarjetas blancas */
    color: var(--text-color-dark);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: 200px; /* Altura fija para las imágenes de productos */
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent-color-purple);
    margin-bottom: 15px;
}

.btn-add-to-cart {
    background-color: var(--accent-color-purple);
    color: var(--text-color-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: var(--button-hover-dark);
}

/* Footer */
.main-footer {
    background-color: var(--primary-bg-dark);
    color: var(--text-color-light);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Para móvil */
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.5em;
    font-weight: 700;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px; /* Para móvil */
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--accent-color-purple);
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
}

.social-media img {
    height: 24px; /* Tamaño de los iconos de redes sociales */
    width: 24px;
}

.copyright {
    border-top: 1px solid #3a3a5a;
    padding-top: 20px;
    font-size: 0.9em;
    color: #ccc;
}

/* Responsive design (básico) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .header-actions {
        flex-direction: column;
        margin-top: 20px;
    }

    .header-actions input[type="text"] {
        margin-bottom: 15px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        margin: 10px 0;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-nav ul {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}