/* ==== VARIABLES ==== */
:root {
    --naranja: #F26A21;
    --gris-claro: #D9D9D9;
    --gris-oscuro: #5A5A5A;
    --negro: #1F1F1F;
    --blanco: #FFFFFF;

    --fuente-titulo: 'Montserrat', sans-serif;
    --fuente-texto: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}


/* ==== BODY ==== */
body {
    font-family: var(--fuente-texto);
    background: var(--blanco);
    color: var(--negro);
}

/* ==== HEADER ==== */
.header {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris-claro);
}

header nav ul li {
    position: relative;
}

header nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F26A21;
    transition: 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}


.header .logo img {
    height: 60px;
    margin-top: -5px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 600;
    font-family: var(--fuente-titulo);
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* ==== HERO ==== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;    
    text-align: center;
    padding: 20px;

    background-image: url("/assets/img/hero.jpeg");
    background-size: cover;                
    background-position: center;           
    background-repeat: no-repeat;
    position: relative;
}


.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
}


.hero h1 {
    font-family: var(--fuente-titulo);
    font-size: 3rem;
    color: var(--blanco);
}

.hero p {
    margin-top: 10px;
    font-size: 1.2rem;
    color: rgb(219 234 254 / var(--tw-text-opacity, 1));
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    background: var(--naranja);
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 15px;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary i,
.btn-secondary i {
    margin-left: 8px;
}

.btn-secondary i {
    margin-right: 8px;
    margin-left: 0;
}

.btn-primary,
.btn-secondary {
    padding: 18px 36px;       
    font-size: 1.1rem;        
    border-radius: 8px;       
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;   
    margin-top: 25px;
}

/* --- SECCIÓN SERVICIOS --- */
.servicios {
    padding: 80px 20px;
    text-align: center;
}

.servicios h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.servicios-subtitle {
    color: #555;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* TARJETAS */
.servicio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* IMAGEN */
.servicio-img {
    position: relative;
}

.servicio-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ICONO */
.servicio-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #F26A21;
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.2rem;
}

/* TEXTO */
.servicio-info {
    padding: 20px;
    text-align: left;
}

.servicio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.servicio-info p {
    color: #555;
    font-size: 0.98rem;
    margin-bottom: 15px;
}

/* LINK DE PRESUPUESTO */
.servicio-link {
    color: #F26A21;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.servicio-link:hover {
    text-decoration: underline;
}


/* --- GALERÍA --- */
.galeria {
    padding: 80px 20px;
    background: #f8f8f8;
    text-align: center;
  }
  
  .galeria .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #121212;
  }
  
  .galeria .section-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
  }
  
  /* GRID DE IMÁGENES */
  .galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  
  .galeria-item {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .galeria-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  
  /* --- LIGHTBOX --- */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
  }
  
  .lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }
  
  .lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .lightbox .close:hover {
    color: #F26A21;
  }
  

  /* ============================
   QUIÉNES SOMOS
============================ */

.about-section {
    padding: 80px 5%;
    
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 320px;
}

.about-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.6;
}

.about-text .highlight {
    color: #F26A21;
    font-weight: 600;
}

/* Imagen */
.about-image {
    position: relative;
    flex: 1;
    min-width: 320px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Badge de experiencia */
.experience-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: #F26A21;
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.experience-badge h3 {
    font-size: 26px;
    margin: 0;
    font-weight: 800;
}

.experience-badge p {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

/* ICON BOXES */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 80px;
}

.feature-box {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: left;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 32px;
    color: #F26A21;
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brand-highlight {
    color: #F26A21;
    font-weight: 700;
}

.experience-badge {
    background: linear-gradient(135deg, #F26A21, #ff8a4b);
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Títulos */
.experience-badge h3 {
    font-size: 26px;
    margin: 0;
    font-weight: 700;
}

/* Subtítulo */
.experience-badge p {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

/* Hover Animation */
.experience-badge:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card i {
    font-size: 45px;
    color: #F26A21;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #555;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* Sección catálogo */
.catalogo-section {
    background-color: #f8f8f8;
    padding: 60px 5%;
    text-align: center;
}

.catalogo-section h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.catalogo-subtitle {
    color: #555;
    margin-bottom: 40px;
}

/* GRID */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Tarjeta */
.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: .3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Tag superior */
.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F26A21;
    color: white;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.tag.laboral { background: #0048A7; }
.tag.deportivo { background: #009688; }

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

.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    margin-bottom: 5px;
}

.info {
    margin: 15px 0;
}

.badges span {
    background: #eee;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Botón */
.btn-orange {
    width: 100%;
    background: #F26A21;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-orange:hover {
    background: #d95d1c;
}

/* CTA */
.catalogo-cta {
    margin-top: 60px;
    padding: 25px;
    background: #f7f7f7;
    border-radius: 16px;
}

/* Sección final catálogo */
.catalogo-contact {
    background: #fff7f2; /* naranja MUY suave */
    padding: 60px 20px;
    border-radius: 20px;
    margin-top: 50px;
    text-align: center;
}

.catalogo-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.catalogo-contact h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 15px;
}

.catalogo-contact p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Botón */
.catalogo-contact .btn-main {
    background: #F26A21;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.catalogo-contact .btn-main:hover {
    background: #ff8a4b;
    transform: translateY(-3px);
}


/* SECCIÓN CONTACTO */
.contact-section {
    padding: 80px 20px;
    background: white;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e1e1e;
}

.contact-header p {
    font-size: 1.2rem;
    color: #555;
}

/* CONTENEDOR PRINCIPAL */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* TARJETA IZQUIERDA */
.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.info-block {
    margin-bottom: 20px;
}

.info-block h4 {
    font-size: 1.1rem;
    color: #F26A21;
    margin-bottom: 5px;
}

/* MAPA */
.map-container {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* FORMULARIO */
.contact-form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-form-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-card label {
    font-weight: 600;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form-card textarea {
    height: 140px;
}

/* BOTÓN */
.btn-main {
    background: #F26A21;
    color: white;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-main:hover {
    background: #ff8a4b;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #222;
    color: #f1f1f1;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
  }
  
  .footer-column {
    flex: 1 1 200px;
    min-width: 200px;
  }
  
  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
  }
  
  .footer-column .subtitle {
    font-style: italic;
    margin-bottom: 10px;
  }
  
  .footer-column p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  .footer-column ul li a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-column ul li a:hover {
    color: #F26A21;
  }
  
  .social-icons a {
    margin-right: 10px;
    color: #f1f1f1;
    font-size: 18px;
    transition: color 0.3s;
  }
  
  .social-icons a:hover {
    color: #F26A21;
  }
  
  .contact-info li i {
    margin-right: 8px;
  }
  
  hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 20px 0;
  }
  
  .footer-rights {
    text-align: center;
    font-size: 13px;
    color: #aaa;
  }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
    }
  }
  
  .esvi-color {
    color: #F26A21;
  }
  


  /* POPUP ÉXITO */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 9999;
}

.success-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    background: #fff;
    padding: 28px 35px;
    border-radius: 16px;
    text-align: center;
    width: 330px;
    animation: popIn 0.4s ease forwards;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-content h3 {
    margin-top: 10px;
    font-size: 22px;
    color: #F26A21;
}

.success-content p {
    color: #555;
    font-size: 15px;
    margin-top: 5px;
}

/* ICONO ✔ ANIMADO */
.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid #F26A21;
    position: relative;
    animation: circle 0.5s ease forwards;
}

@keyframes circle {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-icon::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 10px;
    width: 22px;
    height: 40px;
    border-right: 4px solid #F26A21;
    border-bottom: 4px solid #F26A21;
    transform: rotate(45deg);
    opacity: 0;
    animation: check 0.4s ease 0.45s forwards;
}

@keyframes check {
    0% { opacity: 0; transform: rotate(45deg) scale(0.5); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}
