/*
Theme Name: Everybind Products
Theme URI: https://everybind.com
Author: Everybind
Author URI: https://everybind.com
Description: Tema corporativo para Gesturcit - Sistema de turnos de espera, cita previa y atencion ciudadana. Incluye landing pages para Empresas, Sanidad y Ayuntamientos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: everybind-products
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --gradient-a: #788CF4;
    --gradient-b: #7165E9;
    --purple-deep: #602AA3;
    --purple-accent: #8638E5;
    --purple-hover: #7933CF;
    --white: #FFFFFF;
    --bg-light: #F5F6FA;
    --text-dark: #111827;
    --text-secondary: #4B5563;
    --border: #E5E7EB;
    --radius-button: 16px;
    --radius-card: 24px;
    --shadow-sm: 0 2px 8px rgba(96, 42, 163, 0.08);
    --shadow-md: 0 4px 16px rgba(96, 42, 163, 0.12);
    --shadow-lg: 0 8px 32px rgba(96, 42, 163, 0.16);
    --shadow-xl: 0 16px 48px rgba(96, 42, 163, 0.20);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

a {
    color: var(--purple-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

a.custom-logo-link {
    width: 160px;
	margin-top: -10px;
	margin-bottom: -10px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 100px 24px;
}

.section-light {
    background: var(--bg-light);
}

/* ==========================================================================
   Gradient Utilities
   ========================================================================== */
.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-button);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--purple-deep);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--purple-deep);
}

.btn-secondary {
    background: var(--purple-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--purple-accent);
    border: 2px solid var(--purple-accent);
}

.btn-outline:hover {
    background: var(--purple-accent);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.card-feature {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-feature:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--purple-accent);
}

/* ==========================================================================
   Icon Wrapper
   ========================================================================== */
.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
}

.icon-wrapper svg {
    color: white;
    width: 32px;
    height: 32px;
}

.icon-wrapper-lg {
    width: 72px;
    height: 72px;
}

.icon-wrapper-lg svg {
    width: 36px;
    height: 36px;
}

/* ==========================================================================
   Badge
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(134, 56, 229, 0.1);
    color: var(--purple-accent);
    border: 1px solid rgba(134, 56, 229, 0.2);
}

.badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: white;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Step Number
   ========================================================================== */
.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--purple-deep);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Service Item
   ========================================================================== */
.service-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
    flex-shrink: 0;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-item {
    background: white;
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 28px 32px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 20px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--purple-accent);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--purple-accent);
    color: white;
}

.faq-answer {
    padding: 0 32px 28px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Check List
   ========================================================================== */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.check-item svg {
    color: var(--purple-accent);
    flex-shrink: 0;
}

.check-item-light {
    color: white;
}

.check-item-light svg {
    color: white;
}

/* ==========================================================================
   Feature List (Inline)
   ========================================================================== */
.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    line-height: 1.2;
}

.feature-list-item svg {
    display: block;
    position: relative;
    top: -1px;
}

/* ==========================================================================
   Grid Utilities
   ========================================================================== */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ==========================================================================
   Text Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-80 {
    margin-bottom: 80px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 80px 24px;
    }

    .card-feature {
        padding: 32px 24px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section {
        padding: 60px 20px;
    }

    .card,
    .card-feature {
        padding: 24px 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 14px 24px;
        width: 100%;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .faq-question {
        padding: 20px 24px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 24px 20px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
