/*
 Theme Name:   Kandrarte
 Theme URI:    https://kandrarte.com
 Author:       Kandrarte
 Author URI:   https://kandrarte.com
 Description:  Desarrollo Web Mágico - A modern, magical WordPress theme with gradient accents and elegant typography. Built for creative agencies and web studios.
 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:  kandrarte
 Tags:         one-column, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Base & Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #faf7ff;
    color: #5a4a6a;
    overflow-x: hidden;
}

.title-font {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   Gradient & Magic Button
   ========================================================================== */

.gradient-text {
    background: linear-gradient(45deg, #b399d4, #ff9bb3, #8bd8d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.magic-button {
    background: linear-gradient(45deg, #b399d4, #ff9bb3);
    box-shadow: 0 4px 15px rgba(179, 153, 212, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.magic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(179, 153, 212, 0.6);
}

.magic-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(30deg);
    transition: all 0.3s ease;
}

.magic-button:hover::after {
    left: 100%;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.service-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(179, 153, 212, 0.2);
}

/* Services section: bullet list with star icon */
#services .services-list-star {
    padding-left: 0;
}
#services .services-list-star li {
    display: flex;
    align-items: flex-start;
}
#services .services-list-star .fa-star {
    flex-shrink: 0;
}

/* ==========================================================================
   Sparkle Effect
   ========================================================================== */

.sparkle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    animation: float 5s ease-in-out infinite 1s;
}

.floating-3 {
    animation: float 7s ease-in-out infinite 0.5s;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-input {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(179, 153, 212, 0.3);
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #b399d4;
    box-shadow: 0 0 0 3px rgba(179, 153, 212, 0.2);
}

.glow {
    filter: drop-shadow(0 0 8px rgba(179, 153, 212, 0.6));
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card img {
    transition: transform 0.5s ease;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(179, 153, 212, 0.2);
}

.form-submit {
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   WordPress Core Alignment
   ========================================================================== */

.alignwide { max-width: 75rem; }
.alignfull { max-width: none; }

/* Custom logo in header */
.custom-logo-link img {
    max-height: 48px;
    width: auto;
    height: auto;
}

/* ==========================================================================
   Primary nav menu – keep links side by side (desktop)
   ========================================================================== */

.primary-nav-links .primary-menu,
.primary-nav-links ul.primary-menu,
nav .primary-menu,
nav ul.primary-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-nav-links .primary-menu li,
.primary-nav-links ul.primary-menu li,
nav .primary-menu li,
nav ul.primary-menu li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    width: auto !important;
}

/* ==========================================================================
   Mobile menu panel
   ========================================================================== */

.kandrarte-mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(179, 153, 212, 0.15);
    transition: max-height 0.3s ease;
}

.kandrarte-mobile-menu.is-open {
    max-height: 80vh;
    overflow: auto;
}

body.mobile-menu-open {
    overflow: hidden;
}

.kandrarte-mobile-menu .mobile-menu-list,
.kandrarte-mobile-menu ul.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kandrarte-mobile-menu .mobile-menu-list li,
.kandrarte-mobile-menu ul.mobile-menu-list li {
    margin: 0;
    padding: 0;
    display: block;
}

.kandrarte-mobile-menu .mobile-menu-list a,
.kandrarte-mobile-menu ul.mobile-menu-list a {
    display: block;
    padding: 0.75rem 0;
    color: #b399d4;
    transition: color 0.2s ease;
}

.kandrarte-mobile-menu .mobile-menu-list a:hover,
.kandrarte-mobile-menu ul.mobile-menu-list a:hover {
    color: #ff9bb3;
}

/* ==========================================================================
   How we work – Timeline
   ========================================================================== */

.how-we-work-timeline {
    position: relative;
    padding-left: 2rem;
}
.how-we-work-timeline::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, #b399d4, #ff9bb3, #8bd8d0);
    border-radius: 1px;
}
.how-we-work-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.how-we-work-timeline-item:last-child {
    padding-bottom: 0;
}
.how-we-work-timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(179, 153, 212, 0.3);
}
.how-we-work-timeline-dot--purple { background: #b399d4; }
.how-we-work-timeline-dot--pink { background: #ff9bb3; }
.how-we-work-timeline-dot--teal { background: #8bd8d0; }
.how-we-work-timeline-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(179, 153, 212, 0.2);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.3s ease;
}
.how-we-work-timeline-content:hover {
    box-shadow: 0 10px 25px rgba(179, 153, 212, 0.15);
}

/* Lista editorial (reutilizable en otra sección) */
.how-we-work-editorial-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.how-we-work-editorial-num {
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #b399d4, #ff9bb3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
}
.how-we-work-editorial-item h3 {
    margin-top: 0;
}
.how-we-work-editorial-item p {
    margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

#faq details summary::-webkit-details-marker {
    display: none;
}
#faq details[open] summary {
    border-bottom-color: rgba(147, 51, 234, 0.1);
}
