/* --- VARIABLES DE MARCA RALPH LAUREN --- */
:root {
    --navy: #041e42;
    --gold: #8a7967;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --border-color: #e5e5e5;
    --serif: 'Playfair Display', serif;
    --sans: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--sans);
    color: var(--navy);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
nav {
    position: absolute;
    width: 100%;
    z-index: 100;
    padding: 40px 5%;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
}

nav h1 {
    font-family: var(--serif);
    color: var(--white);
    letter-spacing: 10px;
    font-size: clamp(1.2rem, 4vw, 2rem);
    text-transform: uppercase;
}

/* --- SECCIÓN INICIO (SLIDER) --- */
#inicio {
    height: 100vh;
    width: 100%;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 100px 10%;
    text-align: center;
}

h2 {
    font-family: var(--serif);
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* --- NUESTRAS MARCAS (ESTRUCTURA 40/60) --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.brand-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    height: 520px;
    transition: all 0.4s ease;
}

.brand-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #fafafa;
    overflow: hidden;
}

.brand-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.brand-info {
    flex: 0 0 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--light-gray);
}

.brand-info h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.brand-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    max-width: 260px;
}

.brand-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    transition: 0.3s;
}

.brand-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.brand-item:hover .brand-image img {
    transform: scale(1.08);
}

/* --- CONTACTO --- */
#contacto { background-color: var(--light-gray); }

form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    font-family: var(--sans);
    outline: none;
}

input:focus { border-color: var(--navy); }

button {
    width: 100%;
    padding: 18px;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

button:hover { background-color: var(--gold); }

/* --- PIE DE PÁGINA --- */
.main-footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-content p, .footer-content a {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
}

.footer-divider {
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    display: none;
}

/* --- BOTÓN WHATSAPP DINÁMICO --- */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* Clase de activación vía JS */
.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #1ebea5;
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: center; gap: 30px; }
    .footer-divider { display: block; }
}

@media (max-width: 768px) {
    .brand-item { height: auto; }
    section { padding: 60px 5%; }
}
