/*
Theme Name: FranquiExpo
Theme URI: https://franquiexpo.com
Author: FranquiExpo
Author URI: https://franquiexpo.com
Description: Tema personalizado para FranquiExpo — Plataforma de descubrimiento y conexión de oportunidades de franquicia. Diseño moderno, inmersivo y responsivo para inversores y franquiciantes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: franquiexpo
Tags: custom, responsive, one-page, business, franchise
*/

/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
    --color-primary:     #0047AB;   /* Azul corporativo */
    --color-secondary:   #00AEEF;   /* Azul claro / acento */
    --color-accent:      #FF6B35;   /* Naranja CTA */
    --color-dark:        #1A1A2E;   /* Fondo oscuro */
    --color-light:       #F4F7FC;   /* Fondo claro */
    --color-text:        #333333;
    --color-text-light:  #FFFFFF;
    --color-border:      #E0E6F0;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --shadow-sm:  0 2px  8px rgba(0, 71, 171, 0.10);
    --shadow-md:  0 4px 20px rgba(0, 71, 171, 0.15);
    --shadow-lg:  0 8px 40px rgba(0, 71, 171, 0.20);

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --transition: 0.3s ease;

    --container-width: 1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}

ul, ol {
    list-style: none;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem,3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p  { margin-bottom: 1rem; }

/* ============================================
   CONTENEDOR
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-light);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: #e55a25;
    border-color: #e55a25;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--color-text-light);
    color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 5rem 0;
}

.section--dark {
    background: var(--color-dark);
    color: var(--color-text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--color-text-light);
}

.section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section__label {
    display: inline-block;
    background: rgba(0, 174, 239, 0.15);
    color: var(--color-secondary);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section__title {
    margin-bottom: .75rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   GRIDS UTILITARIOS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}

/* ============================================
   TARJETAS (CARDS)
   ============================================ */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   BADGES / ETIQUETAS
   ============================================ */
.badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.badge--primary   { background: var(--color-primary);   color: #fff; }
.badge--secondary { background: var(--color-secondary); color: #fff; }
.badge--accent    { background: var(--color-accent);    color: #fff; }

/* ============================================
   FORMULARIOS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fadeInUp { animation: fadeInUp .6s ease both; }
.animate-fadeIn   { animation: fadeIn   .6s ease both; }

/* ============================================
   ACCESIBILIDAD
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}
