@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

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

:root {
    --background-primary: #222222;
    --background-secondary: #f4f4f4;
    --red-color: #D01418;
    --white-color: #ffffff;
    --outside-color: #38454F;
    --envio-color: #619D00;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0 auto;
    background-color: var(--outside-color);
}

li { list-style-type: none; }
img { max-width: 100%; }

/* --- HEADER --- */
header {
    background: var(--background-primary);
    max-width: 1200px;
    width: 100%;
    padding: 0 50px;
    margin: 0 auto;
}

header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul { display: flex; }
header img { padding: 30px; }
.menu { color: var(--background-primary); }

li > a, .hero > a {
    color: var(--white-color);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 700;
}

a > i {
    color: var(--red-color);
    padding: 0 20px;
    font-size: 1.5rem;
}

nav {
    position: relative;
    display: flex;
}

nav::before {
    content: "";
    background-color: var(--white-color);
    position: absolute;
    bottom: -10px;
    width: 0%;
    height: 2px;
    transition: all 0.2s;
}

nav:hover::before { width: 100%; }

/* --- MAIN --- */
main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--background-secondary);
}

.hero {
    background-image: url("../img/hero-desk.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 512px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: var(--white-color);
    padding-bottom: 30px;
    font-size: 2.75rem;
}

h1 span { color: var(--red-color); }

.hero > a {
    background-color: var(--red-color);
    padding: 16px 61px;
    font-weight: 500;
    font-size: 1.35rem;
    transition: 1s;
}

.hero > a:hover {
    background-color: yellow;
    color: black;
}

/* --- PRODUCTOS --- */
.productos-destacados {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
}

.productos-destacados > h2, .productos-estrella > h2 {
    font-weight: 400;
    font-size: 2rem;
    padding-bottom: 10px;
}

.productos-destacados > div {
    width: 80%;
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.card {
    background-color: var(--white-color);
    width: 265px;
    height: 330px;
    display: flex;
    flex-direction: column;
}

.card > img {
    width: 129px;
    height: 163px;
    margin: 30px auto;
}

.info-carta { padding: 20px; }
.contado { font-size: 1.4rem; }
.cuotas { font-size: 0.9rem; }
.envio { font-size: 0.8rem; color: var(--envio-color); }
hr { color: var(--background-secondary); opacity: 0.5; }

.productos-estrella {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.productos-estrella > div { display: flex; }

.sillas, .computadoras {
    background-repeat: no-repeat;
    background-size: cover;
    height: 155px;
    width: 381px;
    margin: 20px 57px 85px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    transition: 2s;
}

.sillas { background-image: url("../img/banner-1.png"); }
.computadoras { background-image: url("../img/banner-2.png"); }

.sillas:hover, .computadoras:hover { transform: scale(1.1); }

.productos-estrella h3 {
    color: var(--white-color);
    font-size: 2rem;
    font-weight: 400;
    padding-right: 15px;
}

/* --- FOOTER & CONTACTO LINK --- */
footer {
    background: var(--background-primary);
    max-width: 1200px;
    width: 100%;
    height: 216px;
    margin: 0 auto;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 75px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-contacto {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    transition: 0.3s;
}

.link-contacto:hover { color: var(--red-color); }

/* --- FORMULARIO DE CONTACTO --- */
.form-container {
    background-color: var(--white-color);
    padding: 40px;
    width: 90%;
    max-width: 450px;
    border-radius: 4px;
}

.form-container h2 {
    color: var(--background-primary);
    text-align: center;
    margin-bottom: 20px;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
}

.btn-enviar {
    background-color: var(--red-color);
    color: var(--white-color);
    border: none;
    padding: 15px;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar:hover { background-color: #222; }

/* --- BOTONES REDESSOCIALES (NUEVO EFECTO) --- */
.social {
    display: flex;
    gap: 15px;
    padding-top: 15px;
}

.social-media-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    outline: 2px solid var(--white-color);
    cursor: pointer;
    transition: all 0.3s;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.social-media-button:hover { outline-offset: 3px; }

.social-media-button i {
    transition: all 0.3s;
    color: var(--white-color);
    font-size: 1.4rem;
}

.social-media-button:hover i { transform: scale(1.15); }

.social-media-button:hover:nth-child(1) {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%,#285AEB 90%);
    outline-color: #d6249f;
}

.social-media-button:hover:nth-child(2) {
    background-color: #1D9BF0; /* Twitter Blue */
    outline-color: #1D9BF0;
}

.social-media-button:hover:nth-child(3) {
    background-color: #1877F2; /* Facebook Blue */
    outline-color: #1877F2;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 950px) {
    .hero h1 { width: 500px; text-align: center; }
    .sillas, .computadoras { width: 300px; margin: 20px; }
}

@media screen and (max-width: 475px) {
    header { padding: 0 10px; }
    .hero h1 { font-size: 1.8rem; width: 300px; }
    .productos-destacados > div { flex-direction: column; align-items: center; }
    footer { flex-direction: column; height: auto; padding: 20px; }
}