/*
Theme Name: Verve Child
Theme URI: https://excomconsultores.com
Description: Tema hijo de Astra que emula el diseño Verve de Pirenko. Compatible con Elementor. Incluye CPTs de Portfolio, Team, Testimonios y Slides, widgets Elementor personalizados y opciones de personalización avanzadas.
Author: Excom Consultores
Author URI: https://excomconsultores.com
Template: astra
Version: 1.1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verve-child
*/

/* ====================================================
   VERVE CHILD THEME v1.1 - Estilos Verve precisos
   Diseño inspirado en Verve de Pirenko
   ==================================================== */

/* --- Variables CSS (coinciden con Customizer) --- */
:root {
    --verve-primary: #1a1a2e;
    --verve-secondary: #16213e;
    --verve-accent: #0AB6D1;
    --verve-text: #1a1a2e;
    --verve-text-muted: #888;
    --verve-bg: #ffffff;
    --verve-bg-light: #f8f9fa;
    --verve-bg-dark: #1a1a2e;
    --verve-border: #eee;
    --verve-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --verve-font-heading: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --verve-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --verve-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --verve-shadow-hover: 0 20px 60px rgba(0,0,0,0.12);
}

/* --- Reset / Tipografía Global --- */
body,
button,
input,
select,
textarea {
    font-family: var(--verve-font-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--verve-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--verve-font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--verve-primary);
}

h1 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 48px); letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 1.8vw, 24px); }

p { 
    color: #555;
    line-height: 1.8;
}

a {
    color: var(--verve-primary);
    transition: var(--verve-transition);
}

a:hover {
    color: var(--verve-accent);
}

/* ================================================
   LAYOUT: LEFT SIDEBAR MENU (Estilo Verve)
   ================================================ */

/* When left menu is active via Customizer */
.verve-left-menu .site-header,
.verve-left-menu .ast-primary-header-bar {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--verve-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    box-shadow: none;
    border: none;
}

.verve-left-menu .site-header .site-branding {
    text-align: center;
    margin-bottom: 50px;
}

.verve-left-menu .site-header .site-branding .site-title {
    margin-bottom: 0;
}

.verve-left-menu .site-header .site-branding .site-title a {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.verve-left-menu .site-header .site-branding .site-description {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
}

.verve-left-menu .site-header .main-navigation {
    width: 100%;
}

.verve-left-menu .site-header .main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.verve-left-menu .site-header .main-navigation ul li {
    margin: 2px 0;
}

.verve-left-menu .site-header .main-navigation ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 10px 20px;
    display: block;
    transition: var(--verve-transition);
    border-radius: 0;
    position: relative;
}

.verve-left-menu .site-header .main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 1px;
    background: var(--verve-accent);
    transition: transform 0.3s ease;
}

.verve-left-menu .site-header .main-navigation ul li a:hover::after,
.verve-left-menu .site-header .main-navigation ul li.current-menu-item a::after {
    transform: translateX(-50%) scaleX(1);
}

.verve-left-menu .site-header .main-navigation ul li a:hover {
    color: #fff;
    background: transparent;
}

.verve-left-menu .site-header .header-social-links {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.verve-left-menu .site-header .header-social-links a {
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    margin: 0 8px;
    transition: var(--verve-transition);
}

.verve-left-menu .site-header .header-social-links a:hover {
    color: #fff;
}

.verve-left-menu .site-content {
    margin-left: 260px;
}

.verve-left-menu .ast-header-break-point .site-header {
    position: relative !important;
    width: 100%;
}

/* Hide secondary header in left menu mode */
.verve-left-menu .ast-secondary-header-bar,
.verve-left-menu .ast-below-header-bar {
    display: none !important;
}

/* ================================================
   HERO / SLIDESHOW (Estilo Verve)
   ================================================ */

.verve-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verve-hero-section .hero-content {
    text-align: center;
    z-index: 2;
    padding: 40px;
    max-width: 800px;
}

.verve-hero-section .hero-content h1 {
    color: #fff;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.verve-hero-section .hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto 35px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.verve-hero-section .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(15,15,26,0.5) 100%);
    z-index: 1;
}

/* ================================================
   PORTFOLIO GRID (Estilo Verve)
   ================================================ */

.verve-portfolio-grid {
    display: grid;
    gap: 0;
}

.verve-portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.verve-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.verve-portfolio-item:hover img {
    transform: scale(1.08);
}

.verve-portfolio-item .portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(26,26,46,0.92) 0%, rgba(26,26,46,0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.verve-portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.verve-portfolio-item .portfolio-overlay h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 6px;
    transform: translateY(15px);
    transition: transform 0.4s ease 0.1s;
}

.verve-portfolio-item .portfolio-overlay .portfolio-category {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(15px);
    transition: transform 0.4s ease 0.15s;
}

.verve-portfolio-item:hover .portfolio-overlay h3,
.verve-portfolio-item:hover .portfolio-overlay .portfolio-category {
    transform: translateY(0);
}

/* Portfolio Filters */
.verve-portfolio-filters {
    text-align: center;
    padding: 50px 20px 40px;
}

.verve-portfolio-filters .filter-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #aaa;
    padding: 8px 18px;
    cursor: pointer;
    transition: var(--verve-transition);
    font-family: var(--verve-font-heading);
}

.verve-portfolio-filters .filter-btn:hover {
    color: var(--verve-primary);
}

.verve-portfolio-filters .filter-btn.active {
    color: var(--verve-primary);
}

.verve-portfolio-filters .filter-btn.active::after {
    content: '';
    display: block;
    margin: 4px auto 0;
    width: 18px;
    height: 2px;
    background: var(--verve-accent);
}

/* ================================================
   TEAM MEMBERS (Estilo Verve)
   ================================================ */

.verve-team-grid {
    display: grid;
    gap: 40px;
}

.verve-team-member {
    text-align: center;
    transition: var(--verve-transition);
}

.verve-team-member:hover {
    transform: translateY(-8px);
}

.verve-team-member .member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    box-shadow: var(--verve-shadow);
    transition: var(--verve-transition);
}

.verve-team-member:hover .member-photo {
    box-shadow: var(--verve-shadow-hover);
}

.verve-team-member h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.verve-team-member .member-role {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--verve-text-muted);
    margin-bottom: 15px;
}

.verve-team-member .member-bio {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* ================================================
   TESTIMONIALS (Estilo Verve)
   ================================================ */

.verve-testimonials-section {
    background: var(--verve-bg-light);
    padding: 100px 0;
}

.verve-testimonial-item {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 40px;
}

.verve-testimonial-item .testimonial-text {
    font-size: 22px;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 300;
    quotes: "“" "”" "‘" "’";
}

.verve-testimonial-item .testimonial-text::before {
    content: "“";
    font-size: 60px;
    color: var(--verve-accent);
    opacity: 0.3;
    line-height: 0;
    vertical-align: -20px;
    margin-right: 10px;
    font-style: normal;
}

.verve-testimonial-item .testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--verve-primary);
    letter-spacing: 1px;
}

.verve-testimonial-item .testimonial-role {
    font-size: 12px;
    color: var(--verve-text-muted);
    letter-spacing: 1px;
    margin-top: 4px;
}

.verve-testimonial-item .testimonial-stars {
    color: #f4c150;
    font-size: 16px;
    margin-bottom: 25px;
    letter-spacing: 4px;
}

/* Carousel Dots */
.verve-carousel-dots,
.verve-slide-dots {
    text-align: center;
    margin-top: 30px;
}

.verve-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--verve-transition);
}

.verve-dot.active {
    background: var(--verve-primary);
    transform: scale(1.3);
}

/* ================================================
   SLIDES (Estilo Verve fullscreen)
   ================================================ */

.verve-slide {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.verve-slide .slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease;
}

.verve-slide.active .slide-bg {
    transform: scale(1.05);
}

.verve-slide .slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0.4) 100%);
}

.verve-slide .slide-content {
    position: relative;
    z-index: 2;
    padding: 80px;
    max-width: 650px;
}

.verve-slide .slide-content h2 {
    color: #fff;
    margin-bottom: 20px;
    white-space: pre-line;
}

.verve-slide .slide-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 35px;
    font-weight: 300;
    line-height: 1.8;
}

/* ================================================
   BUTTONS (Estilo Verve)
   ================================================ */

.verve-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 2px solid var(--verve-primary);
    color: var(--verve-primary);
    background: transparent;
    transition: var(--verve-transition);
    cursor: pointer;
    text-decoration: none !important;
    font-family: var(--verve-font-heading);
}

.verve-btn:hover {
    background: var(--verve-primary);
    color: #fff;
}

.verve-btn-light,
.verve-btn-white {
    border-color: #fff;
    color: #fff;
}

.verve-btn-light:hover,
.verve-btn-white:hover {
    background: #fff;
    color: var(--verve-primary);
}

.verve-btn-accent {
    background: var(--verve-accent);
    border-color: var(--verve-accent);
    color: #fff;
}

.verve-btn-accent:hover {
    background: transparent;
    color: var(--verve-accent);
}

/* ================================================
   SECTIONS
   ================================================ */

.verve-section {
    padding: 100px 0;
}

.verve-section-dark {
    background: var(--verve-primary);
    color: #fff;
}

.verve-section-dark h2,
.verve-section-dark h3 {
    color: #fff;
}

.verve-section-dark p {
    color: rgba(255,255,255,0.6);
}

.verve-section-light {
    background: var(--verve-bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title .section-subtitle {
    font-size: 15px;
    color: var(--verve-text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

.section-title .section-divider {
    width: 30px;
    height: 2px;
    background: var(--verve-accent);
    margin: 15px auto;
}

/* ================================================
   FOOTER (Estilo Verve)
   ================================================ */

.verve-footer-section {
    background: var(--verve-primary);
    color: rgba(255,255,255,0.6);
    padding: 80px 0 30px;
}

.verve-footer-section h4 {
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.verve-footer-section a {
    color: rgba(255,255,255,0.5);
    transition: var(--verve-transition);
}

.verve-footer-section a:hover {
    color: #fff;
}

.verve-footer-section .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 25px;
    margin-top: 50px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

/* ================================================
   ELEMENTOR OVERRIDES
   ================================================ */

.elementor-section-boxed .elementor-container {
    max-width: 1200px;
}

.elementor-widget-wrap {
    transition: var(--verve-transition);
}

/* Remove gaps when using Verve portfolio widgets */
.verve-elementor-portfolio .elementor-widget-wrap {
    padding: 0 !important;
}

/* ================================================
   ANIMATIONS
   ================================================ */

.verve-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.verve-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.verve-fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.verve-fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.verve-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.verve-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.verve-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.verve-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ================================================
   ASTRA COMPATIBILITY FIXES
   ================================================ */

/* Remove Astra's default header in left menu mode */
.verve-left-menu .ast-primary-header-bar,
.verve-left-menu .ast-above-header-bar,
.verve-left-menu .ast-below-header-bar {
    display: none;
}

/* Make sure Astra doesn't interfere with our styles */
.ast-header-break-point .verve-left-menu .site-header {
    position: relative !important;
    width: 100%;
}

/* Fix content padding */
.verve-left-menu .site-content .ast-container {
    padding-left: 30px;
    padding-right: 30px;
}

/* Remove astra header in left menu mode */
.verve-left-menu .ast-header-sticked,
.verve-left-menu .ast-sticky-header-shrink {
    display: none !important;
}

/* ================================================
   SINGLE PORTFOLIO PAGE
   ================================================ */

.verve-portfolio-single .verve-portfolio-hero {
    position: relative;
    padding: 140px 0 80px;
}

.verve-portfolio-single .entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

.verve-portfolio-single .entry-content p {
    margin-bottom: 1.5em;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
    .verve-portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .verve-left-menu .site-header,
    .verve-left-menu .ast-primary-header-bar {
        position: relative !important;
        width: 100%;
        height: auto;
        padding: 20px 30px;
        flex-direction: row;
        justify-content: space-between;
    }

    .verve-left-menu .site-header .site-branding {
        margin-bottom: 0;
    }

    .verve-left-menu .site-header .main-navigation {
        display: none;
    }

    .verve-left-menu .site-header .header-social-links {
        display: none;
    }

    .verve-left-menu .site-content {
        margin-left: 0;
    }

    .verve-portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .verve-team-grid {
        grid-template-columns: 1fr !important;
    }

    .verve-slide .slide-content h2 {
        font-size: 28px;
    }

    .verve-slide .slide-content {
        padding: 30px;
    }

    .verve-section {
        padding: 60px 0;
    }

    .verve-hero-section .hero-content h1 {
        font-size: 36px;
    }

    .verve-hero-section .hero-content p {
        font-size: 16px;
    }

    .verve-left-menu .site-header .main-navigation {
        display: block;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--verve-primary);
        padding: 20px;
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .verve-portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .verve-team-grid {
        grid-template-columns: 1fr !important;
    }
}
