/*
Theme Name: RMA Pilates Ponferrada Pro
Theme URI: https://rmapilates.es
Author: RMA Pilates - Roberto Martínez
Author URI: https://rmapilates.es
Description: Tema oficial a medida, ultrarrápido y optimizado para SEO local en Ponferrada (El Bierzo) para RMA Pilates. Incluye secciones de Quién Soy, Pilates Suelo, Pilates Reformer, Pilates Senior, Pilates Kids, YouTube, Canal Sénior y botón directo de WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rma-pilates
*/

:root {
    --bg-primary: #FAF9F6;
    --bg-secondary: #F1EFEA;
    --bg-dark: #1A1A1A;
    --text-main: #1F1F1F;
    --text-muted: #5C5B57;
    --accent-wood: #B89772;
    --accent-wood-dark: #967754;
    --whatsapp: #25D366;
    --whatsapp-dark: #1EBE5D;
    --youtube: #FF0000;
    --canalsenior: #008A5E;
    --white: #FFFFFF;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.15;
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1220px;
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 2px;
    color: var(--bg-dark);
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-wood-dark);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-wood-dark);
}

.btn-nav-wa {
    background: var(--bg-dark);
    color: var(--white) !important;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-nav-wa:hover {
    background: var(--accent-wood-dark);
    transform: translateY(-2px);
}

.hero {
    padding: 4.5rem 0 5.5rem;
    background: linear-gradient(135deg, #FAF9F6 0%, #EFECE6 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.badge-local {
    display: inline-block;
    background: rgba(184, 151, 114, 0.16);
    color: var(--accent-wood-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    color: var(--bg-dark);
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--whatsapp);
    color: var(--white);
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.28);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--bg-dark);
    border: 1px solid rgba(0,0,0,0.12);
    padding: 1rem 1.7rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--bg-dark);
    background: var(--bg-secondary);
}

.hero-media {
    position: relative;
}

.hero-media img {
    border-radius: 22px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero-quote-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--bg-dark);
    color: var(--white);
    padding: 1.4rem 1.8rem;
    border-radius: var(--radius);
    max-width: 320px;
    box-shadow: var(--shadow);
}

.hero-quote-card p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.hero-quote-card span {
    font-size: 0.78rem;
    color: var(--accent-wood);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

section {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.8rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-wood-dark);
    display: block;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.1rem);
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.about-images img {
    border-radius: var(--radius);
    height: 360px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-images img:first-child {
    margin-top: 2rem;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.pillar strong {
    display: block;
    font-size: 1.15rem;
    color: var(--bg-dark);
}

.pillar span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.services-bg {
    background: var(--bg-secondary);
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
}

.service-block.reverse .service-img {
    order: 2;
}

.service-img img {
    border-radius: var(--radius);
    height: 380px;
    width: 100%;
    object-fit: cover;
}

.service-info h3 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
    color: var(--bg-dark);
}

.service-info p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 1.8rem;
}

.benefits-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-wood-dark);
    font-weight: 700;
}

.btn-outline-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--bg-dark);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline-wa:hover {
    background: var(--bg-dark);
    color: var(--white);
}

.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.special-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.special-card img {
    height: 290px;
    width: 100%;
    object-fit: cover;
}

.special-card-body {
    padding: 2.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.special-card h3 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
}

.special-card p {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.media-channels {
    background: var(--bg-dark);
    color: var(--white);
}

.media-channels .section-header h2 {
    color: var(--white);
}

.media-channels .section-header p {
    color: #B8B6B1;
}

.channels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.channel-card {
    background: #242424;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.channel-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    width: fit-content;
}

.badge-yt {
    background: rgba(255, 0, 0, 0.18);
    color: #FF6B6B;
}

.badge-cs {
    background: rgba(0, 138, 94, 0.22);
    color: #4EE2B0;
}

.channel-card h3 {
    font-size: 2.1rem;
    margin-bottom: 0.9rem;
}

.channel-card p {
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

.channel-preview {
    border-radius: 12px;
    height: 220px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.btn-yt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--youtube);
    color: var(--white);
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-yt:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--canalsenior);
    color: var(--white);
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-cs:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.studio-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.studio-item img {
    height: 320px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.studio-item:hover img {
    transform: scale(1.04);
}

.studio-caption {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.cta-box {
    background: linear-gradient(135deg, #22201E 0%, #141414 100%);
    color: var(--white);
    border-radius: 26px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.cta-box h2 {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    margin-bottom: 1rem;
}

.cta-box p {
    color: #CFCBC4;
    max-width: 620px;
    margin: 0 auto 2.2rem;
    font-size: 1.08rem;
}

footer {
    background: #121212;
    color: #9E9B95;
    padding: 3.5rem 0 2rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-wood);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.8rem;
    font-size: 0.82rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 0.9rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.05);
}

@media (max-width: 960px) {
    nav ul {
        display: none;
    }
    .hero-grid, .about-grid, .service-block, .special-grid, .channels-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .service-block.reverse .service-img {
        order: 0;
    }
    .hero-quote-card {
        position: static;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    .studio-grid {
        grid-template-columns: 1fr;
    }
}
