/*
Theme Name: Vintage Publicidad
Theme URI: https://vintagepublicidad.com
Author: Vintage Publicidad
Author URI: https://vintagepublicidad.com
Description: Tema cascaron para Vintage Publicidad, agencia de publicidad en Bogota. Disenado para trabajar al 100% con Elementor Pro.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vintage-publicidad
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, translation-ready
*/

/* ==========================================================================
   1. CSS RESET — Normalizar comportamiento entre navegadores
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    background-color: #FDFBF7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. TIPOGRAFÍA BASE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    color: #0f172a;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #D97706;
}

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

/* ==========================================================================
   3. LAYOUT PARA ELEMENTOR — Contenedor full-width
   ========================================================================== */
.site-main .entry-content,
.site-main article {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Eliminar márgenes de Elementor por defecto del tema */
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}

.elementor-page .entry-content {
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   4. HEADER — Sticky, backdrop-blur, estilo Vintage
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .site-header__inner {
        padding: 1.5rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding: 1.5rem 4rem;
    }
}

/* Logo */
.site-logo {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #0f172a;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .site-logo {
        font-size: 1.875rem;
    }
}

.site-logo:hover {
    color: #D97706;
}

/* ==========================================================================
   5. MENÚ DE NAVEGACIÓN
   ========================================================================== */
.header-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.header-navigation li {
    margin: 0;
}

.header-navigation a {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.header-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: #D97706;
    transition: width 0.3s ease;
}

.header-navigation a:hover::after,
.header-navigation .current-menu-item a::after,
.header-navigation .current_page_item a::after {
    width: 100%;
}

.header-navigation a:hover,
.header-navigation .current-menu-item a,
.header-navigation .current_page_item a {
    color: #D97706;
}

/* Ocultar submenús por defecto (si los hubiera) */
.header-navigation .sub-menu {
    display: none;
}

/* ==========================================================================
   6. MENÚ MÓVIL — Hamburguesa CSS puro
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 51;
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-icon {
    display: block;
    width: 28px;
    height: 2px;
    background: #0f172a;
    position: relative;
    transition: background 0.3s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: #0f172a;
    transition: transform 0.3s ease;
}

.mobile-menu-icon::before { top: -8px; }
.mobile-menu-icon::after  { top: 8px;  }

.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FDFBF7;
    border-bottom: 1px solid #f3f4f6;
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.mobile-navigation.active {
    max-height: 400px;
    opacity: 1;
    padding: 2rem 1.5rem;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-navigation a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #374151;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-navigation li:last-child a {
    border-bottom: none;
}

.mobile-navigation a:hover,
.mobile-navigation .current-menu-item a,
.mobile-navigation .current_page_item a {
    color: #D97706;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    .header-navigation {
        display: none;
    }
    .mobile-navigation {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-navigation {
        display: none !important;
    }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background: #FDFBF7;
    border-top: 1px solid #e5e7eb;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .site-footer__inner {
        padding: 6rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .site-footer__inner {
        padding: 6rem 4rem;
    }
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.site-footer__brand-name {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    color: #0f172a;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.site-footer__description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.site-footer__social {
    display: flex;
    gap: 1rem;
}

.site-footer__social a {
    color: #9ca3af;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.site-footer__social a:hover {
    color: #D97706;
}

.site-footer__heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__nav li {
    margin-bottom: 1rem;
}

.site-footer__nav a {
    font-size: 0.875rem;
    color: #4b5563;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: #D97706;
}

.site-footer__nav a::before {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.625rem;
    color: #D97706;
    margin-right: 0.5rem;
}

.site-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.site-footer__contact-list i {
    color: #D97706;
    font-size: 0.875rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.site-footer__contact-list a {
    color: #4b5563;
    transition: color 0.3s ease;
}

.site-footer__contact-list a:hover {
    color: #D97706;
}

/* Footer Bottom Bar */
.site-footer__bottom {
    border-top: 1px solid #e5e7eb;
}

.site-footer__bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer__bottom-inner {
        padding: 1.5rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .site-footer__bottom-inner {
        padding: 1.5rem 4rem;
    }
}

.site-footer__copyright {
    font-size: 0.6875rem;
    color: #9ca3af;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__copyright i {
    color: #D97706;
    font-size: 0.6875rem;
}

/* ==========================================================================
   8. COMPONENTES REUTILIZABLES — Para Elementor Custom CSS
   ========================================================================== */

/* Botón Primario */
.btn-primary {
    display: inline-block;
    background: #D97706;
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: #B45309;
    color: #fff;
    transform: translateY(-2px);
}

/* Botón Secundario */
.btn-secondary {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-2px);
}

/* Separador decorativo */
.elegant-separator {
    width: 60px;
    height: 1px;
    background: #D97706;
    margin: 1.5rem auto;
}

/* Imagen Grayscale → Color on Hover */
.img-grayscale {
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.img-grayscale:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Número decorativo grande */
.decorative-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(217, 119, 6, 0.15);
    line-height: 1;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
}

/* Card de servicio */
.service-card {
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Card de post */
.post-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Portfolio item */
.portfolio-item {
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.7s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Formularios */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #374151;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 23, 42, 0.55) 50%,
        rgba(15, 23, 42, 0.35) 100%
    );
}

/* Selección de texto */
::selection {
    background: rgba(217, 119, 6, 0.2);
    color: #0f172a;
}

/* ==========================================================================
   9. COMPATIBILIDAD CON WORDPRESS — Clases obligatorias
   ========================================================================== */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
    padding: 0.5rem 0;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
