/* --- CONFIGURACIÓN GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #F9F6F0; 
    color: #1d1d1f; 
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAV TIPO APPLE --- */
.apple-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 246, 240, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo-img {
    height: 30px; 
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f2849e; 
}

/* --- HERO SECTION (DISEÑO DIVIDIDO 50/50 PARA PC) --- */
.hero-apple {
    padding: 160px 5% 80px; 
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    min-height: 90vh; 
}

.hero-text-side {
    flex: 1; 
    text-align: left; 
}

.apple-badge {
    display: inline-block;
    background-color: rgba(242, 132, 158, 0.15); 
    color: #f2849e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-text-side h1 {
    font-size: 4.2rem; 
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero-text-side p {
    font-size: 1.2rem;
    font-weight: 400;
    color: #86868b;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-apple {
    background-color: #1d1d1f;
    color: white;
    padding: 14px 28px; 
    border-radius: 30px; 
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-apple:hover {
    background-color: #f2849e;
    transform: scale(1.02);
}

.btn-apple-outline {
    background-color: transparent;
    color: #1d1d1f;
    border: 2px solid #1d1d1f;
    padding: 12px 28px; 
    border-radius: 30px; 
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-apple-outline:hover {
    background-color: #1d1d1f;
    color: white;
}

.hero-image-side {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 100%;
    max-width: 550px; 
    border-radius: 20px; 
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08); 
}

/* --- SECCIÓN SABORES (SÚPER COMPACTA PARA VER TODO EN 1 PANTALLA) --- */
.products-section {
    padding: 70px 20px; /* Reduje el espacio arriba y abajo */
    max-width: 850px; /* Un poco más angosto para mantener la proporción de las fotos bajitas */
    margin: 0 auto;
    min-height: 100vh; /* Asegura que tome la pantalla completa */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra todo verticalmente */
}

.section-title {
    text-align: center;
    margin-bottom: 35px; /* Reduje la separación con las fotos */
}

.section-title h2 {
    font-size: 2.5rem; /* Título un poco más discreto */
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.section-title p {
    font-size: 1.05rem;
    color: #86868b;
    font-weight: 400;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px; /* Espacio reducido entre tarjetas para que queden más juntas */
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-img-box {
    width: 100%;
    height: 290px; /* CLAVE: Fotos mucho más bajitas para que entren las 2 filas en la pantalla */
    background-color: #f5f5f7;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 18px 15px; /* Menos relleno interno para ahorrar espacio vertical */
    text-align: center;
}

.card-info h3 {
    font-size: 1.15rem; /* Letra más sutil */
    font-weight: 600;
    margin-bottom: 4px;
}

.card-info p {
    color: #86868b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* --- FOOTER --- */
.apple-footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #86868b;
    font-size: 0.85rem;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .hero-apple {
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
        min-height: auto;
    }
    .hero-text-side { text-align: center; }
    .hero-text-side p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-image-side {
        margin-top: 50px;
        justify-content: center;
    }
    .hero-text-side h1 { font-size: 3.5rem; }
    .products-section { min-height: auto; }
}

@media (max-width: 768px) {
    .hero-text-side h1 { font-size: 2.8rem; }
    .hero-apple { padding: 110px 20px 40px; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .product-grid { grid-template-columns: 1fr; gap: 20px; } 
    .nav-links { display: none; }
    .card-img-box { height: 280px; } /* En celular un poquito más altas para que luzcan */
    .section-title h2 { font-size: 2.2rem; }
}