/* =========================================
   VARIABLES CORPORATIVAS (Figma)
========================================= */
:root {
    --primary-orange: #F7821D;
    --primary-orange-hover: #E07014;
    --primary-blue: #2C98CE;
    --text-dark: #1D2630;
    --text-body: #627384;
    --bg-light: #F8F9FA;
    --bg-rrss: #F3F5F7;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* =========================================
   TIPOGRAFÍA GLOBAL
========================================= */
body {
    font-family: var(--font-body);
    color: var(--text-body);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .font-black {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-dark);
}

.text-orange { color: var(--primary-orange) !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-light-body { color: rgba(255, 255, 255, 0.7) !important; }

/* =========================================
   BOTONES
========================================= */
/* Primary Button (Naranja) */
.btn-primary-custom {
    background-color: var(--primary-orange);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background-color: var(--primary-orange);
    color: #292929;
}

/* Header Button (Transparente Borde Blanco) */
.btn-header-custom {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-header-custom:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Secondary Button (Contorno Azul) */
.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-secondary-custom:hover {
    background-color: var(--primary-blue);
    color: #FFFFFF;
}

/* Link Button Píldora (Red de enlaces) */
.btn-link-pildora {
    background-color: var(--primary-orange);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid var(--primary-orange);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}
.btn-link-pildora:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* Redes Sociales */
.btn-social {
    background-color: var(--bg-rrss);
    color: var(--text-body);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 10px;
}
.btn-social.fb:hover { background-color: #1877F2; color: white; }
.btn-social.yt:hover { background-color: #FF0000; color: white; }
.btn-social.ig:hover { background-color: #E4405F; color: white; }

/* =========================================
   TARJETAS (CARDS)
========================================= */
/* Historia Cards */
.card-historia {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}
.card-historia:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}
.icon-box-light {
    background-color: rgba(44, 152, 206, 0.1);
    color: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Servicios Cards */
.card-servicio {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}
.card-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--card-shadow, rgba(0,0,0,0.1));
}
.icon-box-solid {
    background-color: var(--icon-bg, var(--primary-blue));
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Catálogo Cards */
.card-catalogo {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
}
.card-catalogo img {
    border-radius: 12px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: filter 0.3s ease;
}
.card-catalogo:hover {
    background: rgba(255, 255, 255, 0.15);
}
.card-catalogo:hover img {
    filter: brightness(1.1);
}

/* Tutoriales Cards */
.card-tutorial {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}
.card-tutorial .video-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-tutorial .play-btn {
    background: var(--primary-orange);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 5px; /* Centra el icono play visualmente */
}
.card-tutorial .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(29, 38, 48, 0.8);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}
.card-tutorial:hover .font-black {
    color: var(--primary-blue);
}

/* Contacto Cards */
.card-contacto {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    height: 100%;
}
.card-contacto:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.card-contacto:hover .font-black,
.card-contacto:hover .text-body {
    color: var(--primary-blue) !important;
}

/* =========================================
   SECCIONES GLOBALES
========================================= */
.hero-section {
    background: linear-gradient(rgba(44, 152, 206, 0.8), rgba(44, 152, 206, 0.9)), url('../images/hero-bg.jpg') center/cover no-repeat; /* Ajusta la ruta de la imagen si tienes otra */
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}
.badge-hero {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    display: inline-block;
}

.bg-light-gray { background-color: var(--bg-light); }
.bg-blue-brand { background-color: var(--primary-blue); }

.form-control-custom {
    background-color: var(--bg-light);
    border: none;
    border-radius: 8px;
    padding: 15px;
}
.form-control-custom:focus {
    box-shadow: 0 0 0 3px rgba(247, 130, 29, 0.3);
    background-color: #FFFFFF;
    outline: none;
}

/* Hover de la barra de navegación */
.navbar-nav .nav-link {
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
}

/* =========================================
   TARJETAS REPRESENTANTES (Escuelas/Locales)
========================================= */
.card-representante {
    background: #FFFFFF;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.card-representante:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}
.card-representante-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Badges circulares de certificaciones dentro de la tarjeta */
.badge-cert-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.badge-cert-small.acabados { color: var(--primary-orange); background: rgba(247,130,29,0.1); }
.badge-cert-small.vulcanizado { color: var(--primary-blue); background: rgba(44,152,206,0.1); }
.badge-cert-small.recomendado { color: #22C55E; background: rgba(34,197,94,0.1); }

/* Listas de iconos (WhatsApp, Ubicación) */
.icon-list-item {
    display: flex;
    align-items: start;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 12px;
}
.icon-list-item i.text-green { color: #22C55E; font-size: 16px; }
.icon-list-item i.text-red { color: #EF4343; font-size: 16px; }

/* Enlaces pequeños de Redes Sociales */
.social-link-small {
    color: #94A3B8;
    font-size: 18px;
    transition: color 0.3s ease;
}
.social-link-small:hover {
    color: var(--primary-orange);
}


/* Estilo del Formulario en Modal */
.form-label-custom {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}
.input-custom {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: #1D2630;
}
.input-custom:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 152, 206, 0.1);
}
.info-box-modal {
    background: rgba(247, 130, 29, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: var(--text-body);
}