
/* ========================================
   VARIABLES Y COLORES CORPORATIVOS
======================================== */

:root {
    --verde-oscuro: #174D2B;
    --verde-principal: #259B38;
    --dorado: #DDB82E;
    --grafito: #202520;
    --gris-claro: #F5F7F5;
    --blanco: #FFFFFF;

    --fuente-principal: Arial, Helvetica, sans-serif;

    --radio-borde: 10px;
    --ancho-maximo: 1200px;
}

/* ========================================
   ESTILOS GENERALES
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--blanco);
    color: var(--grafito);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--ancho-maximo);
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* ========================================
   HEADER Y MENÚ DE NAVEGACIÓN
======================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 15px 5%;

    background-color: var(--blanco);
    border-top: 5px solid var(--verde-oscuro);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

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

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 250px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 600;
    color: var(--verde-oscuro);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--verde-principal);
}

section {
    scroll-margin-top: 140px;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    min-height: 600px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.80),
            rgba(0, 0, 0, 0.25)
        ),
        url("../img/hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--blanco);
    padding: 80px 5%;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--dorado);
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========================================
   BOTONES
======================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;

    border: 2px solid transparent;
    border-radius: var(--radio-borde);

    cursor: pointer;
    transition: all 0.3s ease;
}

/* Botón principal */

.btn-primary {
    background-color: var(--dorado);
    color: var(--grafito);
}

.btn-primary:hover {
    background-color: #C5A01D;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Botón secundario */

.btn-secondary {
    background-color: transparent;
    color: var(--blanco);
    border-color: var(--blanco);
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--verde-oscuro);
}

/* Botones deshabilitados */

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Navegación mediante teclado */

.btn:focus-visible {
    outline: 3px solid var(--verde-principal);
    outline-offset: 4px;
}

/* ========================================
   TÍTULOS Y SUBTÍTULOS
======================================== */

.section-subtitle {
    display: inline-block;
    color: var(--verde-oscuro);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

section h2 {
    color: var(--verde-oscuro);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 20px;
}

section h2::after {
    content: "";
    display: block;

    width: 65px;
    height: 4px;

    background-color: var(--dorado);
    border-radius: 2px;
    margin-top: 15px;
}

section h3 {
    font-size: 22px;
    color: var(--verde-oscuro);
    margin-bottom: 12px;
}

section p {
    margin-bottom: 15px;
}

/* ========================================
   SECCIÓN NOSOTROS
======================================== */

.nosotros {
    background-color: var(--gris-claro);
}

.nosotros > .container > p {
    max-width: 900px;
    font-size: 17px;
    line-height: 1.8;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.beneficio {
    background-color: var(--blanco);
    padding: 30px;

    border-radius: var(--radio-borde);
    border-top: 4px solid var(--verde-principal);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.beneficio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.beneficio h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.beneficio p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}

/* ========================================
   CATÁLOGO DE MAQUINARIA
======================================== */

.maquinaria {
    background-color: var(--blanco);
}

/* Buscador y filtros */

.filtros {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px 20px;

    background-color: var(--gris-claro);
    padding: 25px;
    border-radius: var(--radio-borde);

    margin-top: 30px;
    margin-bottom: 40px;
}

.filtros label {
    font-size: 14px;
    font-weight: 600;
    color: var(--verde-oscuro);
    grid-row: 1;
}

.filtros input,
.filtros select {
    width: 100%;
    padding: 12px 15px;

    font-family: inherit;
    font-size: 15px;
    color: var(--grafito);

    background-color: var(--blanco);
    border: 1px solid #CCCCCC;
    border-radius: 6px;

    grid-row: 2;

    transition: border-color 0.3s ease;
}

.filtros input:focus,
.filtros select:focus {
    border-color: var(--verde-principal);
    outline: 2px solid var(--verde-principal);
    outline-offset: 2px;
}

.filtros select {
    cursor: pointer;
}

/* Contenedor de productos */

.catalogo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* Tarjeta individual */

.producto-card {
    display: flex;
    flex-direction: column;

    background-color: var(--blanco);
    border: 1px solid #E0E0E0;
    border-radius: var(--radio-borde);

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.producto-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;

    background-color: var(--gris-claro);
    padding: 15px;
}

.producto-info {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 25px;
}

.producto-marca {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--verde-oscuro);
    margin-bottom: 10px;
}

.producto-info h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.producto-info p {
    font-size: 15px;
    color: #555555;
}

.producto-info .btn {
    margin-top: auto;
    width: 100%;
}

/* Mensaje cuando no hay resultados */

.sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666666;
}

/* ========================================
   SECCIÓN NUESTRAS MARCAS
======================================== */

.marcas {
    background-color: var(--gris-claro);
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.marca {
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: var(--blanco);
    padding: 40px 30px;

    text-align: center;
    border-radius: var(--radio-borde);
    border: 1px solid #E0E0E0;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.marca:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.marca img {
    width: 260px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 25px;
}

.marca h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.marca p {
    max-width: 400px;
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}

/* ========================================
   SECCIÓN REPUESTOS Y MANTENIMIENTO
======================================== */

.repuestos {
    background-color: var(--blanco);
}

.repuestos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.repuesto-card {
    background-color: var(--blanco);

    border: 1px solid #E0E0E0;
    border-radius: var(--radio-borde);

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.repuesto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.repuesto-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.repuesto-card h3 {
    font-size: 24px;
    padding: 20px 25px 0;
    margin-bottom: 10px;
}

.repuesto-card p {
    font-size: 16px;
    color: #555555;
    padding: 0 25px 25px;
    margin-bottom: 0;
}

/* Consulta comercial de repuestos */

.repuestos-consulta {
    background-color: var(--verde-oscuro);
    color: var(--blanco);

    padding: 45px 30px;
    margin-top: 50px;

    border-radius: var(--radio-borde);
    text-align: center;
}

.repuestos-consulta h3 {
    color: var(--blanco);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 15px;
}

.repuestos-consulta p {
    font-size: 17px;
    margin-bottom: 25px;
}

/* ========================================
   SECCIÓN SERVICIO POSTVENTA
======================================== */

.postventa {
    background-color: var(--gris-claro);
}

.postventa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    align-items: stretch;

    margin-top: 40px;
    margin-bottom: 35px;
}

/* Fotografía de postventa */

.postventa-imagen {
    position: relative;
    min-height: 400px;

    border-radius: var(--radio-borde);
    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.postventa-imagen img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor de servicios */

.postventa-servicios {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Servicio individual */

.servicio {
    flex: 1;

    background-color: var(--blanco);
    padding: 22px 25px;

    border-left: 4px solid var(--verde-principal);
    border-radius: 6px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.servicio:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
}

.servicio h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.servicio p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 0;
}

/* ========================================
   SECCIÓN CONTACTO
======================================== */

.contacto {
    background-color: var(--blanco);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;

    align-items: start;
    margin-top: 40px;
}

/* Información comercial */

.contacto-info {
    background-color: var(--verde-oscuro);
    color: var(--blanco);

    padding: 35px;
    border-radius: var(--radio-borde);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
}

.contacto-info h3 {
    color: var(--blanco);
    font-size: 24px;
    margin-bottom: 25px;
}

.contacto-info address {
    font-style: normal;
    margin-bottom: 30px;
}

.contacto-info p {
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.contacto-info strong {
    display: block;
    color: var(--dorado);
    margin-bottom: 5px;
}

.contacto-info a:hover {
    text-decoration: underline;
}

/* ========================================
   FOOTER - PIE DE PÁGINA
======================================== */

.footer {
    background-color: var(--verde-oscuro);
    color: var(--blanco);

    padding: 60px 0 20px;
    border-top: 5px solid var(--dorado);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;

    margin-bottom: 40px;
}

/* Información de la empresa */

.footer-empresa img {
    width: 220px;
    height: auto;

    background-color: var(--blanco);
    padding: 10px;
    border-radius: 6px;

    margin-bottom: 20px;
}

.footer-empresa p {
    max-width: 350px;
    font-size: 15px;
    line-height: 1.8;
    color: #DCE7DF;
}

/* Títulos del footer */

.footer h3 {
    color: var(--dorado);
    font-size: 20px;
    margin-bottom: 20px;
}

/* Enlaces rápidos */

.footer-enlaces li {
    margin-bottom: 10px;
}

.footer-enlaces a {
    display: inline-block;
    font-size: 15px;
    color: #DCE7DF;

    transition: color 0.3s ease,
                transform 0.3s ease;
}

.footer-enlaces a:hover {
    color: var(--dorado);
    transform: translateX(5px);
}

/* Información de contacto */

.footer-contacto p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contacto a {
    color: var(--dorado);
    font-weight: 600;
}

.footer-contacto a:hover {
    text-decoration: underline;
}

/* Parte inferior del footer */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #DCE7DF;
}

.footer-bottom a {
    color: var(--dorado);
    font-size: 14px;
    font-weight: 600;

    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--blanco);
}

/* ========================================
   DISEÑO RESPONSIVE
======================================== */

/* Tablets y notebooks pequeñas */

@media (max-width: 1024px) {

    section {
        padding: 60px 0;
    }

    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    section {
        scroll-margin-top: 200px;
    }

    .hero {
        min-height: 500px;
    }

    .beneficios,
    .catalogo,
    .repuestos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .postventa-grid,
    .contacto-grid {
        gap: 25px;
    }

    .footer-grid {
        gap: 25px;
    }

}

/* Celulares y tablets pequeñas */

@media (max-width: 768px) {

    section {
        padding: 50px 0;
        scroll-margin-top: 20px;
    }

    .header {
        position: static;
        flex-direction: column;
        padding: 15px 5%;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero {
        min-height: 450px;
        padding: 60px 5%;
        background-position: center;
    }

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

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

    .hero-subtitle {
        font-size: 12px;
    }

    .beneficios,
    .catalogo,
    .marcas-grid,
    .repuestos-grid,
    .postventa-grid,
    .contacto-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Filtros del catálogo */

    .filtros {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 10px;
    }

    .filtros label,
    .filtros input,
    .filtros select {
        grid-row: auto;
    }

    .filtros input,
    .filtros select {
        margin-bottom: 10px;
    }

    /* Postventa */

    .postventa-imagen {
        min-height: 300px;
    }

    /* Contacto */

    .contacto-info,
    .form-contacto {
        padding: 25px;
    }

    /* Footer */

    .footer-grid {
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}

/* Celulares pequeños */

@media (max-width: 480px) {

    section {
        padding: 40px 0;
    }

    .hero {
        min-height: 420px;
        padding: 50px 5%;
    }
    .logo img {
    width: 220px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .beneficio,
    .marca {
        padding: 25px 20px;
    }

    .producto-card img {
        height: 200px;
    }

    .repuesto-card img {
        height: 200px;
    }

    .postventa-imagen {
        min-height: 250px;
    }

    .servicio {
        padding: 20px;
    }

    .contacto-info,
    .form-contacto {
        padding: 20px;
    }

    .repuestos-consulta {
        padding: 30px 20px;
    }

}

/* ========================================
   ACCESIBILIDAD
======================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--dorado);
    outline-offset: 4px;
}

/* Reducir animaciones según preferencias */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}
/* ========================================
   MENÚ HAMBURGUESA
======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 45px;
    height: 45px;

    background-color: transparent;
    border: 2px solid var(--verde-oscuro);
    border-radius: 6px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 23px;
    height: 3px;

    background-color: var(--verde-oscuro);
    border-radius: 2px;

    transition: transform 0.3s ease,
                opacity 0.3s ease;
}
@media (max-width: 768px) {

    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        max-width: calc(100% - 65px);
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid #E0E0E0;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        font-size: 16px;
    }

    .nav-menu a:hover {
        background-color: var(--gris-claro);
    }

}
/* Estados del menú hamburguesa */

@media (max-width: 768px) {

    .nav-menu.cerrado {
        display: none;
    }

}

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

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

.menu-toggle.activo span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* ========================================
   CONTROLES Y RESULTADOS DEL CATÁLOGO
======================================== */

.catalogo-controles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

#contador-resultados {
    color: var(--verde-oscuro);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.btn-limpiar {
    background-color: transparent;
    color: var(--verde-oscuro);
    border: 2px solid var(--verde-oscuro);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-limpiar:hover {
    background-color: var(--verde-oscuro);
    color: var(--blanco);
}

.sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--gris-claro);
    border-radius: var(--radio-borde);
    color: #666666;
    font-size: 17px;
}

@media (max-width: 480px) {
    .catalogo-controles {
        flex-direction: column;
        align-items: stretch;
    }

    #contador-resultados {
        text-align: center;
    }
}
/* ========================================
   PAGINACIÓN DEL CATÁLOGO
======================================== */

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.btn-paginacion {
    background-color: var(--verde-oscuro);
    color: var(--blanco);
    padding: 12px 22px;
}

.btn-paginacion:hover:not(:disabled) {
    background-color: var(--verde-principal);
}

.btn-paginacion:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#info-pagina {
    font-size: 16px;
    font-weight: 600;
    color: var(--verde-oscuro);
}
/* ========================================
   MODAL DE DETALLES DEL PRODUCTO
======================================== */

.modal-producto {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    padding: 35px;
    border: none;
    border-radius: var(--radio-borde);
    background-color: var(--blanco);
    color: var(--grafito);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.modal-producto::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.cerrar-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--gris-claro);
    color: var(--verde-oscuro);
    font-size: 28px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cerrar-modal:hover {
    background-color: var(--verde-oscuro);
    color: var(--blanco);
}

.modal-marca {
    display: block;
    color: var(--verde-principal);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.modal-titulo {
    color: var(--verde-oscuro);
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 20px;
    padding-right: 25px;
}

.modal-imagen {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-descripcion {
    font-size: 16px;
    margin-bottom: 25px;
}

.modal-caracteristicas {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.modal-caracteristicas th,
.modal-caracteristicas td {
    padding: 12px;
    border-bottom: 1px solid #DDDDDD;
    text-align: left;
}

.modal-caracteristicas th {
    color: var(--verde-oscuro);
    font-weight: 600;
}

.modal-caracteristicas tr:nth-child(even) {
    background-color: var(--gris-claro);
}

.modal-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 480px) {

    .modal-producto {
        padding: 20px;
    }

    .modal-titulo {
        font-size: 24px;
    }

    .modal-acciones {
        flex-direction: column;
    }

    .modal-caracteristicas {
        font-size: 14px;
    }
}
/* ========================================
   FICHAS TÉCNICAS
======================================== */

.btn-ficha {
    background-color: var(--verde-oscuro);
    color: var(--blanco);
}

.btn-ficha:hover {
    background-color: var(--verde-principal);
    transform: translateY(-3px);
}

.ficha-no-disponible {
    color: #666666;
    font-size: 14px;
    font-style: italic;
    background-color: var(--gris-claro);
    padding: 15px;
    border-radius: 6px;
    width: 100%;
}
/* Productos sin fotografia */

.imagen-no-disponible {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7f5;
    color: #777777;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #eeeeee;
}
/* Boton flotante de WhatsApp */

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

.whatsapp-flotante:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .whatsapp-flotante {
        width: 52px;
        height: 52px;
        bottom: 15px;
        right: 15px;
    }
}
/* Boton de consulta por WhatsApp */

.btn-whatsapp {
    background-color: #128C7E;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #075E54;
    color: #ffffff;
}

.modal-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
/* Formulario de contacto */

#form-contacto {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#form-contacto label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #202520;
}

#form-contacto input,
#form-contacto select,
#form-contacto textarea {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d5dcd5;
    border-radius: 6px;
    background-color: #f5f7f5;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 8px;
    transition: border-color 0.3s;
}

#form-contacto input:focus,
#form-contacto select:focus,
#form-contacto textarea:focus {
    outline: none;
    border-color: #259B38;
    box-shadow: 0 0 0 3px rgba(37, 155, 56, 0.12);
}

#form-contacto textarea {
    min-height: 120px;
    resize: vertical;
}

#form-contacto button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #174D2B;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#form-contacto button[type="submit"]:hover {
    background-color: #259B38;
}

@media (max-width: 768px) {
    #form-contacto {
        padding: 20px;
    }
}
/* Enlaces de contacto */

#contacto p a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.3s;
}

#contacto p a:hover {
    color: #DDB82E;
    text-decoration: underline;
}
/* Ajustes para celulares pequeños */

@media (max-width: 480px) {

    .header {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header img {
        max-width: 190px;
        height: auto;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero {
        padding-top: 40px;
        padding-bottom: 70px;
    }

    .whatsapp-flotante {
        width: 46px;
        height: 46px;
        right: 12px;
        bottom: 12px;
    }
}
