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

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
}

/* =========================
   HEADER PREMIUM
========================= */
header {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;

    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);

    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 72px;
    height: 72px;
    margin-right: 16px;

    border-radius: 50%;
    object-fit: cover;

    background: #fff;
    padding: 6px;
    border: 3px solid #1e7f43;

    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* TEXTO DE MARCA (si usás h1) */
.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: #4a4a4a;
    letter-spacing: 0.5px;
}

/* NAV */
nav a {
    color: #4a4a4a;
    margin-left: 28px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
}

/* Hover elegante */
nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -6px;
    background: #1e7f43;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
    background: url("../img/hero.jpg") center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 40px;
}

.hero-text {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
}

/* BOTÓN */
.btn {
    display: inline-block;
    margin-top: 15px;
    background: #1e7f43;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #166334;
}

/* =========================
   SECCIONES
========================= */

/* HERO CON CARRUSEL */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px;
}

/* Carrusel de fondo */
.hero-carousel {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroSlider 18s infinite ease-in-out;
    z-index: 1;
}

/* Oscurece para mejor lectura */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2;
}

/* Texto arriba del carrusel */
.hero-text {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 600px;
    padding: 25px;
    border-radius: 10px;
}

/* Animación del carrusel */
@keyframes heroSlider {
    0% {
        background-image: url("../img/tela1.jpg");
    }
    33% {
        background-image: url("../img/tela2.jpg");
    }
    66% {
        background-image: url("../img/tela3.jpg");
    }
    100% {
        background-image: url("../img/tela1.jpg");
    }
}

.section {
    padding: 60px 30px;
    text-align: center;
}

.bg-light {
    background: #f4f4f4;
}

/* CARDS */
.cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    width: 280px;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    border-radius: 6px;
}

/* GALERÍA */
.gallery {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery img {
    width: 250px;
    border-radius: 8px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #1e7f43;
    color: #fff;
    text-align: center;
    padding: 18px;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    header {
        padding: 15px 25px;
    }

    nav a {
        margin-left: 18px;
        font-size: 14px;
    }

    .logo img {
        width: 58px;
        height: 58px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .hero {
        height: auto;
        padding: 30px;
    }
}

.contact-branches {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.branch {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
}

.branch h3 {
    margin-bottom: 15px;
    color: #1e7f43;
}

.branch a {
    color: #1e7f43;
    text-decoration: none;
    font-weight: 600;
}

.branch a:hover {
    text-decoration: underline;
}

/* WhatsApp */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.whatsapp-link img {
    width: 24px;
    height: 24px;
}

