/*
Theme Name: Papa Tours
Theme URI: https://papatours.info/
Author: Cusco Creativos
Author URI: https://cuscocreativos.com/
Description: Tema personalizado de alto rendimiento y optimizado para SEO para la agencia de viajes Papa Tours. Desarrollado por Cusco Creativos con estándares modernos de WordPress, accesibilidad y velocidad.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: papatours
Tags: travel, tours, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, blog
*/

/* ==========================================================================
   CSS Custom Properties / Variables de Marca Papa Tours
   ========================================================================== */
:root {
    /* Paleta Corporativa Papa Tours */
    --pt-primary: #004b93;          /* Azul Papa Tours */
    --pt-primary-dark: #00366d;     /* Azul profundo */
    --pt-primary-light: #0b63bd;    /* Azul brillante */
    --pt-secondary: #d49b28;        /* Amarillo / Dorado Sol */
    --pt-secondary-light: #e7af3f;  /* Dorado suave */
    --pt-secondary-dark: #b37f18;   /* Dorado oscuro */
    
    /* Neutros y Superficies */
    --pt-dark: #0f172a;             /* Texto títulos y contrastes oscuros */
    --pt-text: #334155;             /* Texto cuerpo */
    --pt-muted: #64748b;            /* Texto secundario / gris */
    --pt-light: #f8fafc;            /* Fondo claro */
    --pt-surface: #ffffff;          /* Fondo tarjetas y contenedores */
    --pt-border: #e2e8f0;           /* Bordes sutiles */
    --pt-border-focus: #004b93;     /* Borde foco accesibilidad */

    /* Tipografías Oficiales */
    --pt-font-heading: 'Merriweather', Georgia, serif;
    --pt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Escala Tipográfica Fluida */
    --pt-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --pt-text-sm: clamp(0.875rem, 0.83rem + 0.23vw, 0.9375rem);
    --pt-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --pt-text-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
    --pt-text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --pt-text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --pt-text-3xl: clamp(1.875rem, 1.65rem + 1.13vw, 2.375rem);
    --pt-text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);

    /* Espaciados */
    --pt-spacing-xs: 0.25rem;
    --pt-spacing-sm: 0.5rem;
    --pt-spacing-md: 1rem;
    --pt-spacing-lg: 1.5rem;
    --pt-spacing-xl: 2rem;
    --pt-spacing-2xl: 3rem;
    --pt-spacing-3xl: 4.5rem;

    /* Contenedores */
    --pt-container-sm: 640px;
    --pt-container-md: 768px;
    --pt-container-lg: 1024px;
    --pt-container-xl: 1200px;
    --pt-container-2xl: 1320px;

    /* Bordes y Sombras */
    --pt-radius-sm: 4px;
    --pt-radius-md: 8px;
    --pt-radius-lg: 12px;
    --pt-radius-full: 9999px;
    --pt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --pt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    /* Transiciones */
    --pt-transition: all 0.25s ease-in-out;
}

/* ==========================================================================
   CSS Reset y Base Accesible
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--pt-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pt-text);
    background-color: var(--pt-light);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Tipografía de Títulos: Merriweather */
h1, h2, h3, h4, h5, h6,
.pt-heading {
    font-family: var(--pt-font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--pt-dark);
    margin-bottom: var(--pt-spacing-sm);
    word-break: break-word;
}

h1 { font-size: var(--pt-text-4xl); font-weight: 900; }
h2 { font-size: var(--pt-text-3xl); }
h3 { font-size: var(--pt-text-2xl); }
h4 { font-size: var(--pt-text-xl); }
h5 { font-size: var(--pt-text-lg); }
h6 { font-size: var(--pt-text-base); }

p {
    margin-bottom: var(--pt-spacing-md);
}

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

a:hover, a:focus {
    color: var(--pt-secondary);
}

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

ul, ol {
    margin-bottom: var(--pt-spacing-md);
    padding-left: var(--pt-spacing-lg);
}

/* Enlace accesible para lectores de pantalla */
.skip-link {
    position: absolute;
    top: -999px;
    left: 10px;
    background: var(--pt-primary);
    color: #fff;
    padding: var(--pt-spacing-sm) var(--pt-spacing-md);
    z-index: 999999;
    border-radius: var(--pt-radius-sm);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
}

/* Clases de utilidad base */
.pt-container {
    width: 100%;
    max-width: var(--pt-container-2xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pt-spacing-md);
    padding-right: var(--pt-spacing-md);
}

.site-main {
    flex: 1 0 auto;
    padding: 0;
    margin: 0;
}

.site-main.site-front-page {
    padding-top: 0;
    padding-bottom: 0;
}
