/* ============================================================
   BD Fisioterapia - Estilos
   Colores: #B5FCFF (acento), #2D3748 (footer), fondo blanco
   ============================================================ */

/* -- Fuentes locales -- */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #333;
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -- Header -- */
.header {
    background: #B5FCFF;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    border-radius: 0;
    transition: all .2s;
    white-space: nowrap;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}
.nav-link:hover,
.nav-link.active {
    color: #000;
    background: rgba(255,255,255,0.3);
}
.nav-link.btn-cita {
    background: #fff;
    color: #000;
    border-radius: 30px;
    padding: 8px 22px;
    font-weight: 700;
}
.nav-link.btn-cita:hover {
    background: #e0f7f7;
    color: #000;
}
.nav-link.btn-cita::after { display: none; }

.nav-socials {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}
.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
    color: #000;
    font-size: 1.1rem;
}
.social-link:hover {
    background: rgba(255,255,255,0.4);
    color: #000;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 16px 20px;
    gap: 4px;
}
.mobile-link {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    color: #333;
}
.mobile-link.active { color: #00897b; background: #e0f7f7; }
.mobile-link.btn-cita {
    background: #B5FCFF;
    text-align: center;
    margin-top: 8px;
    border-radius: 30px;
}
.mobile-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 0 12px;
}

/* -- Section titles -- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #222;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #B5FCFF;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* -- Buttons -- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: #B5FCFF;
    color: #333;
}
.btn-primary:hover { background: #8ce8ec; }
.btn-outline {
    background: transparent;
    border: 2px solid #B5FCFF;
    color: #00897b;
}
.btn-outline:hover { background: #B5FCFF; color: #333; }

/* -- Slider -- */
.slider-section {
    background: #f8f8f8;
    padding: 0;
    width: 100%;
    overflow: hidden;
}
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.slider-slide {
    min-width: 100%;
    height: 100%;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.slider-nav, .slider-dots { display: none !important; }

/* -- Hero / Welcome -- */
.hero-section {
    padding: 0;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}
.hero-content {
    background: #fff;
    padding: 60px 40px 60px 0;
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}
.hero-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}
.hero-text p { margin-bottom: 14px; }
.hero-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -80px;
    z-index: 11;
}
.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
}

/* -- Bullets -- */
.bullets-section {
    padding: 20px 0 60px;
}
.bullets-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.bullet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}
.bullet-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #B5FCFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #00897b;
}

/* -- Testimonios -- */
.testimonios-section {
    padding: 60px 0;
    background: #f8fdfd;
}
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonio-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    text-align: center;
}
.testimonio-text {
    font-style: italic;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.7;
}
.testimonio-author {
    font-weight: 700;
    color: #00897b;
    font-size: 0.95rem;
}

/* -- Blog preview -- */
.blog-preview-section {
    padding: 60px 0;
}
.blog-preview-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.blog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #B5FCFF 0%, #e0f7f7 100%);
    background-size: cover;
    background-position: center;
    display: block;
}
.blog-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.3;
}
.blog-card-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}
.blog-card-link { display: none; }

/* -- Contacto -- */
.contacto-section {
    padding: 60px 0;
    background: #f8fdfd;
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contacto-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}
.contacto-info p {
    margin-bottom: 10px;
    color: #555;
}
.contacto-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    height: 300px;
}
.contacto-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.contact-form {
    margin-top: 32px;
}
.contact-form .form-group {
    margin-bottom: 16px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #333;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #B5FCFF;
    outline: none;
}

/* -- Servicios -- */
.page-header {
    background: linear-gradient(135deg, #B5FCFF 0%, #e0f7f7 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}
.page-header p {
    font-size: 1.05rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.servicios-intro {
    padding: 50px 0 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #555;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 0 60px;
}
.servicio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform .2s;
    cursor: pointer;
    background: linear-gradient(135deg, #B5FCFF 0%, #e0f7f7 100%);
}
.servicio-card:hover { transform: translateY(-4px); }
.servicio-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform .3s;
}
.servicio-card:hover .servicio-card-bg { transform: scale(1.05); }
.servicio-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
}
.servicio-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}
.servicio-card-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.servicio-card-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    line-height: 1.5;
    display: none;
}
.servicio-card:hover .servicio-card-text { display: block; }
.servicio-card.empty-slot {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    border: 2px dashed #ddd;
}
.servicio-card.empty-slot .servicio-card-overlay { display: none; }

/* -- Equipo -- */
.equipo-header-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #B5FCFF 0%, #e0f7f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00897b;
    font-weight: 600;
    font-size: 1.2rem;
    min-height: 200px;
}
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 20px 0 60px;
}
.equipo-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.equipo-card-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #B5FCFF 0%, #e0f7f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00897b;
    font-size: 0.85rem;
}
.equipo-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}
.equipo-card-bio {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
}

/* -- Equipo rows (alternating layout) -- */
.equipo-row {
    display: grid;
    grid-template-columns: 1fr 45%;
    gap: 40px;
    align-items: start;
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}
.equipo-row:last-child { border-bottom: none; }
.equipo-row-img { display: flex; align-items: center; justify-content: center; }
.equipo-foto {
    width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.equipo-row-text .equipo-card-name { margin-bottom: 16px; }
.equipo-row-text .equipo-card-bio p { margin-bottom: 12px; }

/* -- Blog -- */
.blog-section {
    padding: 50px 0 60px;
}
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}
.blog-post-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.blog-post-content .post-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.blog-post-content .post-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.85;
}
.blog-post-content .post-body p { margin-bottom: 16px; }
.blog-post-content .post-body h2 { margin: 32px 0 12px; color: #222; }
.blog-post-content .post-body h3 { margin: 24px 0 8px; color: #222; }
.blog-post-content .post-body ul, .blog-post-content .post-body ol { margin: 0 0 16px 24px; }
.blog-post-content .post-body li { margin-bottom: 6px; }
.blog-post-content .post-body blockquote {
    border-left: 4px solid #B5FCFF;
    padding-left: 16px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}
.blog-post-content .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* -- Admin Blog -- */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.admin-header h1 { font-size: 1.6rem; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.admin-table th {
    background: #f8fdfd;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #555;
}
.admin-table td { font-size: 0.9rem; color: #333; }
.admin-table .actions a, .admin-table .actions button {
    margin-right: 8px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-edit { background: #B5FCFF; color: #333; }
.btn-delete { background: #ffcccc; color: #c00; }
.btn-new { background: #00897b; color: #fff; padding: 10px 24px; border-radius: 30px; font-weight: 700; }
.btn-save { background: #00897b; color: #fff; padding: 12px 32px; border-radius: 30px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; }
.btn-save:hover { background: #00695c; }
.btn-cancel { background: #ddd; color: #333; padding: 12px 32px; border-radius: 30px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; }

.editor-form { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.editor-form .form-group { margin-bottom: 20px; }
.editor-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.editor-form input[type="text"], .editor-form input[type="date"] {
    width: 100%; padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px;
    font-family: 'Open Sans', sans-serif; font-size: 0.95rem;
}
.editor-form input:focus { border-color: #B5FCFF; outline: none; }

/* Toolbar */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #f8f8f8;
    border: 2px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.editor-toolbar button {
    width: 34px; height: 34px;
    border: none; background: none;
    cursor: pointer; border-radius: 4px;
    font-size: 0.85rem; font-weight: 700;
    color: #333; display: flex; align-items: center; justify-content: center;
}
.editor-toolbar button:hover { background: #e0f7f7; }
.editor-toolbar .separator { width: 1px; background: #ddd; margin: 0 4px; }

.editor-textarea {
    width: 100%;
    min-height: 400px;
    padding: 14px;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
}
.editor-textarea:focus { border-color: #B5FCFF; outline: none; }

/* Preview */
.editor-preview {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-height: 200px;
    background: #fafafa;
}
.editor-preview h3 { margin-bottom: 12px; font-size: 1rem; color: #999; }

/* Image upload */
.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s;
    margin-top: 8px;
}
.image-upload-area:hover { border-color: #B5FCFF; }
.image-upload-area input[type="file"] { display: none; }
.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.image-preview-grid img {
    width: 100px; height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
}

/* -- Legal pages -- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 60px;
}
.legal-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #222;
}
.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: #333;
}
.legal-content p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.8;
}

/* -- Footer -- */
.footer {
    background: #2D3748;
    color: #ccc;
    padding: 48px 0 0;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.footer-col p {
    margin-bottom: 6px;
    line-height: 1.6;
}
.footer-col a {
    color: #B5FCFF;
    transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 18px 0;
    font-size: 0.85rem;
    color: #888;
}

/* -- Page header with image -- */
.page-header-img {
    padding: 0;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.page-header-img .page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1F2525;
    opacity: 0.55;
}
.page-header-img .page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}
.page-header-img h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.page-header-img p {
    color: #fff;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* -- Servicio Modals -- */
#modal-bg {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
}
#modal-bg.show { display: block; }
.modal-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    z-index: 2001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-popup.show { display: block; }
.modal-x {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.modal-x:hover { color: #333; }
.modal-popup h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-right: 28px;
}
.modal-body {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* -- Responsive -- */
@media (max-width: 900px) {
    .nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav.open { display: flex; }

    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .equipo-grid { grid-template-columns: 1fr; }
    .equipo-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
    .equipo-row-img { order: -1; }
    .equipo-foto { width: 220px; height: 300px; }
    .contacto-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .bullets-grid { flex-direction: column; align-items: center; gap: 16px; }

    .page-header-img { height: 280px; }
    .page-header-img h1 { font-size: 2rem; }
    .page-header-img p { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .servicios-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 40px 20px 20px; }
    .hero-img-wrap { margin-top: 0; justify-content: center; padding: 0 20px 40px; }
    .hero-img { height: 280px; width: 100%; max-width: 350px; }
    .slider { height: 300px; }
    .page-header-img { height: 200px; }
    .page-header-img h1 { font-size: 1.6rem; }
}

@media (min-width: 1200px) {
    .slider {
        height: 650px;
    }
    .slider-section {
        background: #f8f8f8;
    }
}
