/* ===============================
   VARIABLES Y RESET
================================ */
:root {
    --primary-color: #2D6B5F;
    --secondary-color: #4A3728;
    --accent-color: #3D8B7C;
    --bg-light: #F8F6F4;
    --text-dark: #2C2C2C;
    --text-light: #666;
    --white: #FFFFFF;
    --border-color: #E0DDD9;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===============================
   HEADER Y NAVEGACIÓN - MOBILE FIRST
================================ */
header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
    position: relative;
}
.logo {
    display: flex;
    justify-content: center;
    position: absolute;
    background: #ffffff;
    padding: 5px 70px;
    border-radius: 70px;
    top: 0;
}

.logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 1.2rem;
    width: 100%;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===============================
   CONTAINER
================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ===============================
   HERO SECTION - MOBILE FIRST
================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Hero con imagen de fondo */
.hero-with-image {
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%),
        url('assets/ortopedia-en-castellon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
}

/* ===============================
   BOTONES
================================ */
.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.cta-button.secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-button.secondary:hover {
    background-color: var(--accent-color);
}

/* ===============================
   SECTIONS - MOBILE FIRST
================================ */
.intro,
.features,
.services-intro,
.about-content,
.contact-content {
    padding: 3rem 0;
}

.intro {
    background-color: var(--bg-light);
    text-align: center;
}

.intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.intro p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===============================
   FEATURE CARDS - MOBILE FIRST
================================ */

/* Layout de features con imagen */
.features-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
 
}

.features-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.features-image {
    width: 100%;
    order: -1; /* La imagen aparece primero en móvil */
}

.features-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    object-fit: cover;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===============================
   CTA SECTION
================================ */
.cta-section {
    background-color: var(--bg-light);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

/* ===============================
   PAGE HEADER
================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* ===============================
   ABOUT CONTENT
================================ */
.about-text h2,
.about-text h3 {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.about-text h2 {
    font-size: 2rem;
}

.about-text h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
}

.about-text p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.3rem;
}

/* VALUES GRID - MOBILE FIRST */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.value-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.team-section,
.why-choose {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.team-section h3,
.why-choose h3 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.team-section p,
.why-choose p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===============================
   SERVICES - MOBILE FIRST
================================ */
.services-intro {
    background-color: var(--bg-light);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.services-intro p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.8;
}

.services-list {
    padding: 3rem 0;
}

.service-item {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===============================
   CONTACT - MOBILE FIRST
================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-info h2,
.map-container h2 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-item .note {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    width: 100%;
    height: 300px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

.map-note {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.visit-us {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.visit-us h2 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.visit-us p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===============================
   FOOTER - MOBILE FIRST
================================ */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    margin: 0 0.2rem;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===============================
   COOKIE BANNER - MOBILE FIRST
================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-content a:hover {
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.cookie-buttons button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.cookie-buttons button:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
}
.features{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto ;
}
/* ===============================
   MEDIA QUERIES - TABLETS (600px+)
================================ */
@media (min-width: 600px) {
    /* Header */
    nav {
        padding: 1rem 2rem;
    }

    .logo img {
        height: 75px;
    }

    .nav-menu {
        gap: 1.8rem;
        justify-content: flex-end;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 5rem 2rem 4rem;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    /* Sections */
    .intro h2,
    .cta-section h2 {
        font-size: 2.2rem;
    }

    .intro p {
        font-size: 1.1rem;
        max-width: 700px;
    }

    /* Feature Grid - 2 columnas en tablet */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Features layout - mantener en columna en tablet */
    .features-layout {
        gap: 3rem;
    }

    .features-image {
        order: -1; /* Imagen primero también en tablet */
    }

    /* Values Grid - 2 columnas */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    /* Contact Grid - Mantener 1 columna pero más ancho */
    .map-wrapper {
        height: 350px;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .cookie-buttons {
        flex-direction: row;
        width: auto;
    }

    .cookie-buttons button {
        width: auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }

    .footer-logo {
        height: 80px;
    }
}

/* ===============================
   MEDIA QUERIES - LAPTOP (900px+)
================================ */
@media (min-width: 900px) {
    /* Container */
    .container {
        padding: 0 3rem;
    }

    /* Header */
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 25px 0;
    }

    .logo img {
        height: 125px;
    }

    .nav-menu {
        gap: 2.5rem;
        justify-content: flex-end;
    }

    /* Hero */
    .hero {
        padding: 7rem 3rem 5.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    /* Page Header */
    .page-header {
        padding: 4.5rem 3rem 3.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.2rem;
    }

    /* Sections */
    .intro,
    .features,
    .services-intro,
    .about-content,
    .contact-content {
        padding: 4rem 0;
    }

    /* Features section - ancho completo en tablets */
    .features .container {
        max-width: 100%;
        padding: 0 3rem;
    }

    .intro h2,
    .cta-section h2 {
        font-size: 2.4rem;
    }

    .intro p {
        font-size: 1.15rem;
        max-width: 800px;
    }

    /* Feature Grid - 3 columnas en laptop */
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        margin-top: 3rem;
    }

    /* Features layout - 2 columnas: cards a la izquierda, imagen a la derecha */
    .features-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .features-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-image {
        order: 0; /* Imagen a la derecha en laptop y desktop */
    }

    .features-image img {
        height: 100%;
        min-height: 600px;
        object-fit: cover;
    }

    .feature-card {
        padding: 2.3rem;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    /* Values Grid - 3 columnas */
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* About */
    .about-text h2 {
        font-size: 2.4rem;
    }

    .about-text h3 {
        font-size: 1.9rem;
    }

    .about-text p {
        font-size: 1.05rem;
    }

    /* Services */
    .service-item h2 {
        font-size: 1.9rem;
    }

    .service-item p {
        font-size: 1.05rem;
    }

    /* Contact - 2 columnas */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        margin-top: 3rem;
    }

    .contact-info h2,
    .map-container h2 {
        font-size: 1.9rem;
    }

    .contact-item h3 {
        font-size: 1.25rem;
    }

    .contact-item p {
        font-size: 1.05rem;
    }

    .map-wrapper {
        height: 400px;
    }

    .visit-us h2 {
        font-size: 1.9rem;
    }

    .visit-us p {
        font-size: 1.05rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 4.5rem 3rem;
    }

    .cta-section p {
        font-size: 1.15rem;
    }
}

/* ===============================
   MEDIA QUERIES - DESKTOP (1200px+)
================================ */
@media (min-width: 1200px) {
    /* Container */
    .container {
        padding: 0 5%;
    }

    /* Hero */
    .hero {
        padding: 250px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    /* Sections */
    .intro,
    .features,
    .services-intro,
    .about-content,
    .contact-content {
        padding: 5rem 0;
    }

    .intro h2,
    .cta-section h2 {
        font-size: 2.5rem;
    }

    .intro p {
        font-size: 1.2rem;
    }

    /* Page Header */
    .page-header {
        padding: 5rem 0 4rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .page-header p {
        font-size: 1.3rem;
    }

    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
        display: flex;
        column-gap: 20px;
        align-items: center;
    }
    .feature-card > div:first-child{
        width: 150px;
    }
    .feature-card > div:last-child{
        width: calc(100% - 150px);
    }
    .feature-card > div > img{
        filter: brightness(0) saturate(100%) invert(34%) sepia(16%) saturate(1322%) hue-rotate(118deg) brightness(97%) contrast(87%);
    }
    .feature-card h3 {
        font-size: 1.5rem;
    }

    /* Features layout - proporción 50-50 para desktop grande */
    .features-layout {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .features-image img {
        min-height: 650px;
    }

    /* About */
    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-text h3 {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .team-section,
    .why-choose {
        margin-top: 4rem;
        padding: 2.5rem;
    }

    .team-section h3,
    .why-choose h3 {
        font-size: 2rem;
    }

    /* Services */
    .services-list {
        padding: 4rem 0;
    }

    .service-item {
        margin-bottom: 4rem;
        padding-bottom: 3rem;
    }

    .service-item h2 {
        font-size: 2rem;
    }

    .service-item p {
        font-size: 1.1rem;
    }

    /* Contact */
    .contact-grid {
        gap: 4rem;
    }

    .contact-info h2,
    .map-container h2 {
        font-size: 2rem;
    }

    .contact-item h3 {
        font-size: 1.3rem;
    }

    .contact-item p {
        font-size: 1.1rem;
    }

    .visit-us {
        margin-top: 4rem;
        padding: 3rem;
    }

    .visit-us h2 {
        font-size: 2rem;
    }

    .visit-us p {
        font-size: 1.1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 5rem 0;
    }

    .cta-section p {
        font-size: 1.2rem;
    }

    /* Footer */
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo {
        height: 90px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* ===============================
   MEDIA QUERIES - PANTALLAS GRANDES (1440px+)
================================ */
@media (min-width: 1440px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .page-header h1 {
        font-size: 3.2rem;
    }

    .intro h2,
    .cta-section h2 {
        font-size: 2.6rem;
    }
}

/* ===============================
   UTILIDADES RESPONSIVE
================================ */

/* Prevenir overflow horizontal */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Imágenes responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Tablas responsive */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ocultar scroll horizontal en webkit */
::-webkit-scrollbar-horizontal {
    display: none;
}

/* ===============================
   PAGE HEADER (BASE)
================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.95;
}

/* ===============================
   PAGE HEADER - ABOUT (BANNER IMAGE)
================================ */
.page-header--about {
    background-image: url('/resources/assets/ortopedia-en-castellon-nosotros.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.page-header--about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.page-header--about .container {
    position: relative;
    z-index: 2;
}

.page-header--about h1 {
    font-size: 2.2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,.6);
}

.page-header--about p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,.6);
}

/* ===============================
   MEDIA QUERIES
================================ */
@media (min-width: 900px) {
    .page-header--about h1 {
        font-size: 2.8rem;
    }
    .page-header--about p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .page-header--about h1 {
        font-size: 3rem;
    }
    .page-header--about p {
        font-size: 1.3rem;
    }
}

/* ===============================
   UTILIDADES
================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
/* ===============================
   TEAM-WHY CONTAINER CON GRADIENTES
================================ */

/* Container para las 2 columnas */
.team-why-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.team-section,
.why-choose {
    margin-top: 0;
    padding: 3rem 2rem;
    border-radius: 16px;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* Card 1: Equipo Profesional - Gradiente Verde */
.team-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Card 2: Por qué elegirnos - Gradiente Marrón */
.why-choose {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #5A4838 100%);
}

/* Efecto de brillo sutil en los cards */
.team-section::before,
.why-choose::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.team-section h3,
.why-choose h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.team-section p,
.why-choose p {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.team-section p:last-child,
.why-choose p:last-child {
    margin-bottom: 0;
}

/* ===============================
   MEDIA QUERIES - LAPTOP (900px+)
================================ */
@media (min-width: 900px) {
    /* Team y Why Choose - 2 columnas en laptop */
    .team-why-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin-top: 4rem;
    }

    .team-section,
    .why-choose {
        padding: 3rem 2.5rem;
    }

    .team-section h3,
    .why-choose h3 {
        font-size: 2rem;
    }

    .team-section p,
    .why-choose p {
        font-size: 1.05rem;
    }
}

/* ===============================
   MEDIA QUERIES - DESKTOP (1200px+)
================================ */
@media (min-width: 1200px) {
    .team-why-container {
        gap: 4rem;
    }

    .team-section,
    .why-choose {
        padding: 3.5rem 3rem;
    }

    .team-section h3,
    .why-choose h3 {
        font-size: 2.2rem;
    }

    .team-section p,
    .why-choose p {
        font-size: 1.1rem;
    }
}

/* ===============================
   SERVICIOS - BLOQUES ALTERNADOS - MOBILE FIRST
================================ */

.service-block {
    padding: 3rem 0;
    background-color: var(--white);
}

.service-block.alt {
    background-color: #F0EDE9;
}

/* Container específico para servicios */
.service-block .container {
    max-width: 100%;
    padding: 0 1.5rem;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.service-text h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.service-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* En móvil, la imagen siempre va primero */
.service-content .service-image {
    order: -1;
}

.service-content .service-text {
    order: 0;
}

/* ===============================
   MEDIA QUERIES - TABLETS (600px+)
================================ */
@media (min-width: 600px) {
    .service-block {
        padding: 4rem 0;
    }

    .service-block .container {
        padding: 0 2rem;
    }

    .service-content {
        gap: 2.5rem;
    }

    .service-text h2 {
        font-size: 1.9rem;
        margin-bottom: 1.2rem;
    }

    .service-text p {
        font-size: 1rem;
    }

    .service-image {
        border-radius: 16px;
    }
}

/* ===============================
   MEDIA QUERIES - LAPTOP (900px+)
================================ */
@media (min-width: 900px) {
    .service-block {
        padding: 5rem 0;
    }

    .service-block .container {
        max-width: 100%;
        padding: 0 3rem;
    }

    /* Layout de 2 columnas */
    .service-content {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
    }

    /* Orden normal: texto izquierda, imagen derecha */
    .service-content .service-image {
        order: 0;
    }

    .service-content .service-text {
        order: 0;
    }

    /* Orden inverso: imagen izquierda, texto derecha */
    .service-content.reverse {
        direction: rtl;
    }

    .service-content.reverse .service-text,
    .service-content.reverse .service-image {
        direction: ltr;
    }

    .service-text h2 {
        font-size: 2.1rem;
        margin-bottom: 1.5rem;
    }

    .service-text p {
        font-size: 1.05rem;
    }

    .service-image img {
        height: 100%;
        min-height: 350px;
        object-fit: cover;
    }
}

/* ===============================
   MEDIA QUERIES - DESKTOP (1200px+)
================================ */
@media (min-width: 1200px) {
    .service-block {
        padding: 6rem 0;
    }

    .service-block .container {
        max-width: 100%;
        padding: 0 5%;
    }

    .service-content {
        gap: 4.5rem;
    }

    .service-text h2 {
        font-size: 2.4rem;
        margin-bottom: 1.8rem;
    }

    .service-text p {
        font-size: 1.1rem;
        line-height: 1.9;
    }

    .service-image img {
        min-height: 400px;
    }
}

/* ===============================
   MEDIA QUERIES - PANTALLAS GRANDES (1440px+)
================================ */
@media (min-width: 1440px) {
    .service-block .container {
        max-width: 1600px;
        padding: 0 6%;
        margin: 0 auto;
    }

    .service-content {
        gap: 5.5rem;
    }

    .service-text h2 {
        font-size: 2.6rem;
    }

    .service-text p {
        font-size: 1.15rem;
    }

    .service-image img {
        min-height: 450px;
    }
}

/* ===============================
   MEDIA QUERIES - ULTRA WIDE (1920px+)
================================ */
@media (min-width: 1920px) {
    .service-block .container {
        max-width: 1800px;
    }

    .service-content {
        gap: 6rem;
    }

    .service-text h2 {
        font-size: 2.8rem;
    }

    .service-image img {
        min-height: 500px;
    }
}

/* ===============================
   PAGE HEADER - SERVICIOS (CON IMAGEN DE FONDO)
================================ */
.page-header--servicios {
   background-image: url('assets/ortopedia-en-castellon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

/* Sombreado negro suave sobre la imagen */
.page-header--servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header--servicios .container {
    position: relative;
    z-index: 2;
}

.page-header--servicios h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.page-header--servicios p {
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* ===============================
   MEDIA QUERIES - TABLETS (600px+)
================================ */
@media (min-width: 600px) {
    .page-header--servicios {
        padding: 4rem 2rem 3rem;
    }

    .page-header--servicios h1 {
        font-size: 2.3rem;
    }

    .page-header--servicios p {
        font-size: 1.1rem;
    }
}

/* ===============================
   MEDIA QUERIES - LAPTOP (900px+)
================================ */
@media (min-width: 900px) {
    .page-header--servicios {
        padding: 4.5rem 3rem 3.5rem;
    }

    .page-header--servicios h1 {
        font-size: 2.5rem;
    }

    .page-header--servicios p {
        font-size: 1.2rem;
    }
}

/* ===============================
   MEDIA QUERIES - DESKTOP (1200px+)
================================ */
@media (min-width: 1200px) {
    .page-header--servicios {
        padding: 5rem 0 4rem;
    }

    .page-header--servicios h1 {
        font-size: 3rem;
    }

    .page-header--servicios p {
        font-size: 1.3rem;
    }
}

/* ===============================
   MEDIA QUERIES - PANTALLAS GRANDES (1440px+)
================================ */
@media (min-width: 1440px) {
    .page-header--servicios h1 {
        font-size: 3.2rem;
    }
}

/* ===============================
   PAGE HEADER - CONTACTO (BANNER IMAGE)
================================ */
.page-header--contacto {
    background-image: url('/resources/assets/ortopedia-en-castellon-nosotros.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.page-header--contacto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.page-header--contacto .container {
    position: relative;
    z-index: 2;
}

.page-header--contacto h1 {
    font-size: 2.2rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,.6);
    color: var(--white);
}

.page-header--contacto p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,.6);
    color: var(--white);
}

/* ===============================
   MEDIA QUERIES
================================ */
@media (min-width: 900px) {
    .page-header--contacto h1 {
        font-size: 2.8rem;
    }
    .page-header--contacto p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .page-header--contacto h1 {
        font-size: 3rem;
    }
    .page-header--contacto p {
        font-size: 1.3rem;
    }
}

/* ===============================
   FIN DEL CSS RESPONSIVE
================================ */