:root {
    --azul-principal: #2E5C9A;
    --azul-oscuro: #1F3E6E;
    --naranja: #F47A20;
    --gris: #f4f6fa;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gris);
    color: #333;
}

/* HEADER */

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8%;
    background: var(--blanco);
}

/**.logo {
    font-weight: 700;
    font-size: 24px;
    color: var(--azul-principal);
}**/

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 24px;
    color: var(--azul-principal);
}

.logo-img {
    height: 130px;
    width: auto;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav a:hover {
    color: var(--azul-principal);
}

.btn-phone {
    background: var(--naranja);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

/* ACCIONES DEL HEADER (redes + teléfono) */

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--azul-oscuro);
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: var(--naranja);
    transform: translateY(-2px);
}

.social-icons-mobile {
    display: none;
}

/* HERO */

.hero {
    /*background: linear-gradient(rgba(31,62,110,0.85), rgba(31,62,110,0.85)),
    url("img/img_fondo.png");
    background-size: cover;
    background-position: center;
    padding: 120px 8%;
    color: white;*/
    position: relative;
    height: 55vh;

    background-image: url("img/img_fondo.png");
    background-size: cover;      /* muestra imagen completa */
    background-position: right center;
    background-repeat: no-repeat;
    background-attachment: fixed;  /* efecto parallax */

    display: flex;
    align-items: center;
    padding: 0 8%;

    background-color: #1F3E6E; /* color fallback */
    
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    margin-bottom: 30px;
    font-size: 18px;
    color: white;

}

.btn-primary {
    background: var(--naranja);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* SECCIONES */

section {
    padding: 80px 8%;
}

h2 {
    font-size: 32px;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
}

.subtitle {
    margin-bottom: 40px;
    color: #555;
}

/* NOSOTROS */

.nosotros-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.nosotros-image {
    flex: 1;
    min-width: 300px;
}

.nosotros-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.nosotros-text {
    flex: 1;
    min-width: 320px;
}

.nosotros-text h2 {
    margin-bottom: 20px;
}

.nosotros-text p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
}

.nosotros-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--gris);
    border-radius: 10px;
    padding: 15px 18px;
    min-width: 130px;
    flex: 1;
}

.badge-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 6px;
}

.badge-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    position: relative;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}

.card-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,62,110,0.35) 0%, rgba(15,30,58,0.92) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.card-content h3 {
    color: white;
}

.card-content p {
    color: rgba(255,255,255,0.9);
}

.icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* REPUESTOS */

.repuestos {
    position: relative;
    padding: 100px 8%;
    background: url("img/foto_repuestos.png") center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.repuestos-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(31,62,110,0.93) 0%, rgba(46,92,154,0.88) 100%);
    z-index: 1;
}

.repuestos-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

/* TEXTO */

.repuestos-text {
    flex: 1;
    min-width: 300px;
}

.repuestos-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.repuestos-text p {
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 500px;
}

/* GRID */

.repuestos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.repuesto-card {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* IMAGEN LADO DERECHO */

.repuestos-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.repuestos-image img {
    width: 100%;              /* NO ocupa todo */
    max-width: 100%;
    border-radius: 12px;
   
    background: white;       /* tarjeta blanca */
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.mapa-tienda {
    width: 100%;
    max-width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/*.repuestos {
    background: var(--azul-principal);
    color: white;
}

.repuestos-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.repuestos-text {
    max-width: 500px;
}

.repuestos-buttons button {
    margin: 10px 10px 0 0;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.map-placeholder {
    background: white;
    color: #333;
    padding: 40px;
    border-radius: 12px;
    min-width: 300px;
}*/


/***** COBERTURA *****/

.cobertura {
    position: relative;
    padding: 0;
    overflow: hidden;

    /* Imagen de fondo */
    background: url("img/img_neuquen.jpeg") center/cover no-repeat;

    
}

/* Overlay blanco translúcido */
.cobertura::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.cobertura-content {
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 2;
}

/* LADO IZQUIERDO */

.cobertura-left {
    width: 50%;
    padding: 0 8%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    
}

.cobertura-left h2 {
    font-size: 38px;
    color: var(--azul-oscuro);
    margin-bottom: 20px;
}

.cobertura-left p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* BOTON */

.btn-whatsapp {
    display: inline-block;
    background: #f7931e;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;

    max-width: 200px; /* ancho máximo en desktop */
    width: 100%;
    text-align: center;
}

/* LADO DERECHO AZUL COMPLETO */

.cobertura-right {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    color: white;

    /* Quitamos el background de aquí */
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

/* CAPA AZUL TRANSPARENTE */

.cobertura-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--azul-oscuro); /* mantiene tu azul */
    opacity: 0.8; /* 👈 aquí controlas la transparencia */
    z-index: 1;

    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}

/* CONTENIDO INTERNO ENCIMA DEL AZUL */

.contacto-inner {
    position: relative;
    z-index: 2;
    padding: 80px 8% 80px 20%;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* TITULO */

.cobertura-right h3 {
    font-size: 28px;
    margin-bottom: 25px;
}

/* PARRAFOS */

.cobertura-right p {
    margin-bottom: 18px;
    font-size: 17px;

    word-break: break-word;
    overflow-wrap: break-word;
}


/* MENU TOGGLE (hamburguesa) */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--azul-oscuro);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.btn-phone-mobile {
    display: none;
}

/* RESPONSIVE */

/* ---- TABLET (<= 1024px) ---- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 34px;
    }

    .repuestos-container {
        gap: 40px;
    }

    .contacto-inner {
        padding: 80px 6% 80px 14%;
    }
}

/* ---- TABLET CHICA / MOBILE GRANDE (<= 900px) ---- */
@media (max-width: 900px) {
    .cobertura-content {
        flex-direction: column;
    }

    .cobertura-left,
    .cobertura-right {
        width: 100%;
    }

    .cobertura-right {
        clip-path: none;
    }

    .cobertura-right::before {
        clip-path: none;
    }

    .contacto-inner {
        padding: 50px 8%;
        text-align: center;
    }
}

/* ---- MOBILE (<= 768px) ---- */
@media (max-width: 768px) {

    /* Header con menú hamburguesa */
    .menu-toggle {
        display: flex;
    }

    header {
        flex-wrap: wrap;
    }

    .header-actions {
        display: none; /* en mobile, teléfono y redes se muestran dentro del menú */
    }

    .logo-img {
        height: 60px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanco);
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 8% 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        z-index: 50;
    }

    nav.open {
        max-height: 400px;
        opacity: 1;
        padding: 10px 8% 20px;
    }

    nav a {
        margin: 8px 0;
        width: 100%;
    }

    .btn-phone-mobile {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }

    .social-icons-mobile {
        display: flex;
        margin-top: 12px;
    }

    /* Nosotros */
    .nosotros-container {
        gap: 30px;
    }

    .nosotros-badges {
        gap: 10px;
    }

    .badge {
        min-width: 100px;
        padding: 12px 10px;
    }

    /* Hero */
    .hero {
        background-attachment: scroll;
        height: auto;
        min-height: 55vh;
        padding: 70px 6%;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Secciones */
    section {
        padding: 50px 6%;
    }

    h2 {
        font-size: 26px;
    }

    .repuestos {
        padding: 60px 6%;
    }

    .repuestos-text h2 {
        font-size: 28px;
    }

    .repuestos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mapa-tienda {
        height: 300px;
    }

    .card {
        min-height: 220px;
    }
}

/* ---- MOBILE CHICO (<= 480px) ---- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 22px;
    }

    .btn-primary,
    .btn-whatsapp {
        width: 100%;
        text-align: center;
        max-width: 100%;
    }

    .repuestos-grid {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .cobertura-left h2 {
        font-size: 28px;
    }

    .cobertura-right h3 {
        font-size: 22px;
    }

    .card {
        min-height: 200px;
        padding: 20px;
    }

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

    .nosotros-badges {
        flex-direction: column;
    }

    .badge {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
}

/* FOOTER */

footer {
    background: #0f1e3a;
    color: white;
    text-align: center;
    padding: 40px 8%;
}
