html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff;
    color: #222;
    max-width: 100vw;
}

/* Header superior */
.header-top {
    width: 100%;
    background: #0e417a; /* azul oscuro como la foto */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    font-size: 0.98rem;
}
.header-top-left {
    display: flex;
    gap: 24px;
    align-items: center;
}
.header-top-right {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-right: 78px;
}
.icon-text {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.social-icon {
    color: #fff;
    font-size: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0 6px;
}
.social-icon:hover {
    color: #63c8ff;
}

/* Header inferior */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background: #fff;
    /* sin borde */
    box-shadow: 0 2px 12px rgba(23, 73, 122, 0.07);
}
.header-left {
    display: flex;
    align-items: center;
}
.header-logo {
    height: 54px;
    width: auto;
    display: block;
}
.header-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.header-right {
    min-width: 0;
}
.nav-link {
    color: #039be5;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
.nav-link.active, .nav-link:hover {
    color: #0288d1;
    border-bottom: 2px solid #0288d1;
}

/* Botón principal reutilizable */
.btn-primary {
    background: #039be5;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(3, 155, 229, 0.08);
    outline: none;
    text-decoration: none;
    /* Elimina subrayado si es un <a> */
}
.btn-primary:hover, .btn-primary:focus {
    background: #0288d1;
}

.header-right .login-btn {
    display: inline-block;
}

.login-footer-mobile {
    display: none;
    margin-top: 24px;
    width: 100%;
    text-align: center;
}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 100vw;
}

.bottom {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    background: #17497a;
    padding: 60px 0 40px 0;
    border-top: none;
    flex-shrink: 0;
    color: #fff;
    gap: 0;
    max-width: 100vw;
}

.bottom-section {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 260px;
}

.bottom-logo {
    align-items: center;
    text-align: center;
    justify-content: flex-start;
}
.footer-logo {
    width: 220px;
    max-width: 90vw;
    margin-bottom: 18px;
}
.footer-slogan {
    margin-bottom: 32px;
    font-size: 1.15rem;
    color: #fff;
}
.footer-social {
    display: flex;
    gap: 18px;
    justify-content: center;
}
.footer-social-icon {
    background: #255a8c;
    color: #fff;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s, color 0.2s;
}
.footer-social-icon:hover {
    background: #63c8ff;
    color: #17497a;
}

.bottom-links {
    align-items: flex-start;
    text-align: left;
}
.footer-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
    border-bottom: 3px solid #63c8ff;
    display: inline-block;
    padding-bottom: 2px;
}
.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #63c8ff;
}
.bottom-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bottom-links li {
    margin-bottom: 12px;
}

.bottom-contact {
    align-items: flex-start;
    text-align: left;
}
.bottom-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bottom-contact li {
    margin-bottom: 14px;
    font-size: 1.08rem;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.bottom-contact i {
    color: #63c8ff;
    font-size: 1.1rem;
    margin-top: 3px;
}

/* Insurance slideshow styles */
.insurance-slideshow-section {
text-align: center;
margin: 30px auto;
max-width: 1200px;
padding: 0 20px;
}

.insurance-title {
font-size: 2rem;
color: #17497a;
margin-bottom: 20px;
font-weight: 700;
}

.insurance-slideshow-container {
position: relative;
width: 100%;
max-width: 600px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
}

.insurance-slideshow {
position: relative;
width: 100%;
height: 150px;
overflow: hidden;
border-radius: 12px;
background: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
}

.insurance-slideshow-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.5s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
}

.insurance-slideshow-slide.active {
opacity: 1;
}

.insurance-logo {
max-width: 80%;
max-height: 80%;
object-fit: contain;
}

.insurance-slideshow-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.8);
color: #17497a;
border: none;
font-size: 1.8rem;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
z-index: 3;
transition: background 0.2s, color 0.2s;
display: flex;
align-items: center;
justify-content: center;
}

.insurance-slideshow-btn.prev {
left: -50px;
}

.insurance-slideshow-btn.next {
right: -50px;
}

.insurance-slideshow-btn:hover,
.insurance-slideshow-btn:focus {
background: #17497a;
color: #fff;
}

.insurance-indicators {
display: flex;
justify-content: center;
margin-top: 20px;
}

.indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ccc;
margin: 0 5px;
cursor: pointer;
transition: background 0.3s;
}

.indicator.active {
background: #17497a;
}

/* Hide arrows and indicators on mobile */
@media (max-width: 768px) {
.insurance-slideshow-btn {
    display: none;
}

.insurance-slideshow-container {
    max-width: 100%;
}

.insurance-title {
    font-size: 1.5rem;
}
}

.slideshow {
    position: relative;
    width: 95vw;
    max-width: 1200px;
    height: 520px;
    margin: 30px auto 30px auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(23, 73, 122, 0.12);
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slideshow-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    display: flex;
    align-items: center;
}
.slideshow-slide.active {
    opacity: 1;
    z-index: 1;
}
.slideshow-slide.fade-out {
    opacity: 0;
}
.slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    filter: brightness(0.7);
}
.slideshow-text {
    position: absolute;
    left: 90px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: left;
    max-width: 40%;
    z-index: 2;
}
.slideshow-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(23, 73, 122, 0.18);
}
.slideshow-desc {
    font-size: 1.25rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(23, 73, 122, 0.18);
}
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #039be5;
    border: none;
    font-size: 2.2rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slideshow-btn.prev { left: 18px; }
.slideshow-btn.next { right: 18px; }
.slideshow-btn:hover, .slideshow-btn:focus {
    background: #63c8ff;
    color: #fff;
}

.weight-cards {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    max-width: 100vw;
}
.weight-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(23, 73, 122, 0.10);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 22px 24px 22px;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}
.weight-card:hover {
    box-shadow: 0 6px 32px rgba(23, 73, 122, 0.18);
    transform: translateY(-6px) scale(1.03);
}
.weight-card-img {
    width: 100%;
    max-width: 220px;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(23, 73, 122, 0.10);
    overflow: hidden;
}

.weight-card-img img {
    width: 100%;
    height: 100%;
}

.blog-card-img {
    width: 100%;
    max-width: 220px;
    height: 140px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(23, 73, 122, 0.10);
    object-fit: contain;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* For mobile 4:3 aspect ratio */
@media (max-width: 900px) {
    /* Blog card images - keep original styling but adjust for mobile */
    .blog-card-img {
        width: 100%;
        max-width: 100%;
        height: 0;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        position: relative;
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
    }
    
    .blog-card-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 12px;
        object-fit: contain;
    }
}
.weight-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #17497a;
    margin-bottom: 12px;
    text-align: center;
}
.weight-card-desc {
    font-size: 1.08rem;
    color: #333;
    text-align: center;
    line-height: 1.5;
}

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    min-height: 0;
}
.login-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(23, 73, 122, 0.10);
    padding: 38px 32px 32px 32px;
    min-width: 320px;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}
.login-title {
    color: #17497a;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}
.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.login-field label {
    font-size: 1rem;
    color: #17497a;
    font-weight: 500;
}
.login-field input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #90caf9;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}
.login-field input:focus {
    border: 1.5px solid #039be5;
}
.login-error {
    color: #d32f2f;
    font-size: 1rem;
    margin-top: 8px;
    min-height: 22px;
    text-align: center;
}
@media (max-width: 600px) {
    .login-form {
        min-width: 0;
        max-width: 98vw;
        padding: 18px 6vw 18px 6vw;
    }
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #039be5;
    cursor: pointer;
    margin-left: 18px;
    z-index: 1101;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(23, 73, 122, 0.13);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 24px 24px;
}
.sidebar.open {
    transform: translateX(0);
}
.close-sidebar {
    background: none;
    border: none;
    font-size: 2rem;
    color: #039be5;
    align-self: flex-end;
    margin-bottom: 24px;
    cursor: pointer;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sidebar-nav .btn-primary {
    margin-top: 18px;
    width: 100%;
    text-align: center;
}

.header-icon-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 0 8px;
}
.header-icon-link:hover {
    color: #63c8ff;
}
.header-contact-text {
    display: inline;
}

.blog-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}
.blog-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(23, 73, 122, 0.10);
    padding: 38px 32px 32px 32px;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}
.blog-form h2 {
    color: #17497a;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}
.blog-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blog-field label {
    font-size: 1rem;
    color: #17497a;
    font-weight: 500;
}
.blog-field input,
.blog-field textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #90caf9;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}
.blog-field input:focus,
.blog-field textarea:focus {
    border: 1.5px solid #039be5;
}
.btn-secondary {
    background: #e3f2fd;
    color: #17497a;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    margin-top: 8px;
}
.btn-secondary:hover {
    background: #90caf9;
}
@media (max-width: 600px) {
    .blog-form {
        min-width: 0;
        max-width: 98vw;
        padding: 18px 6vw 18px 6vw;
    }
}

.blog-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px; /* Aumenta el espacio entre tarjetas */
    max-width: 1200px;
    margin: 10px auto 40px auto;
    padding: 0 20px;
}
.blog-card {
    max-width: 370px;
    min-width: 220px;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    transition: max-height 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    margin: 0 16px; /* Margen horizontal extra */
}
.blog-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    max-width: 700px;
    max-height: 90vh;
    height: auto;
    background: #fff;
    box-shadow: 0 8px 32px rgba(23, 73, 122, 0.25);
    z-index: 9999;
    overflow-y: auto;
    padding: 32px 24px;
    border-radius: 18px;
    margin: 0;
}

/* Calendar iframe container */
.consulta-section .calendar-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    min-height: 400px;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Calendar iframe */
.consulta-section .calendar-iframe {
    flex: 1;
    border: 0;
    width: 100%;
    height: 100%;
}

/* Calendar iframe */
.consulta-section .calendar-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    flex: 1;
}

/* Google Calendar button container */
#googleCalendarButton {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#googleCalendarButton > div {
    transform: scale(1.2);
    transform-origin: top left;
}
body.blog-modal-open {
    overflow: hidden;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #17497a;
    margin-bottom: 8px;
    transition: font-size 0.3s;
    cursor: pointer;
}
.blog-card.expanded .blog-card-title {
    font-size: 1.6rem;
    color: #039be5;
}
.blog-card-content {
    max-height: 70px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
}
.blog-card.expanded .blog-card-content {
    max-height: 1000px;
    overflow: visible;
}
.blog-card.expanded .blog-card-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin-bottom: 20px;
}
.blog-card.expanded .blog-card-img img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.blog-loading {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    font-size: 1.2rem;
    color: #17497a;
}
.blog-card-content.truncated:after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, #fff 80%);
    padding-left: 10px;
    color: #17497a;
}

.blog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(23, 73, 122, 0.25); /* azul semitransparente */
    z-index: 9998;
    transition: opacity 0.3s;
    opacity: 1;
}
body:not(.blog-modal-open) .blog-overlay {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .blog-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .blog-articles {
        grid-template-columns: 1fr;
        padding: 0 4vw;
    }
    .blog-card {
        max-width: 98vw;
        min-width: 0;
        margin: 0 auto; /* Centrar las tarjetas y eliminar margen lateral desigual */
    }
    .blog-card.expanded .blog-card-img {
        height: 0;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        position: relative;
        overflow: hidden;
    }
    .blog-card.expanded .blog-card-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
@media (max-width: 900px) {
    .slideshow {
        height: 240px;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .slideshow-text {
        left: 16px;
        bottom: 18px;
        top: auto;
        transform: none;
        max-width: 90vw;
        padding: 10px 12px 8px 12px;
        border-radius: 8px;
        position: absolute;
    }
    .slideshow-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    .slideshow-desc {
        font-size: 0.95rem;
    }
    .slideshow-img {
        border-radius: 0;
    }
    .slideshow-btn {
        display: none !important;
    }
    .header-nav, .header-right {
        display: none !important;
    }
    .header-left {
        width: 100%;
        justify-content: center;
    }
    .header {
        justify-content: center;
    }
    .login-footer-mobile {
        display: block;
    }
    .weight-cards {
        flex-direction: column;
        gap: 32px;
        max-width: 98vw;
        padding: 0 4vw;
    }
    .weight-card {
        padding: 24px 16px;
        overflow: visible;
        align-items: stretch;
    }
    .weight-card-img {
        max-width: 100%;
        height: auto;
        position: relative;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(23, 73, 122, 0.10);
        overflow: hidden;
        margin-bottom: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .weight-card-img img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }
    .header-top {
        padding: 8px 0 8px 0;
        justify-content: center;
    }
    .weight-card-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    .weight-card-desc {
        font-size: 1.15rem;
        line-height: 1.6;
    }
    .header-top-left {
        gap: 22px;
        justify-content: center;
        width: 100%;
    }
    .header-top-right {
        display: none !important;
    }
    .header-contact-text {
        display: none;
    }
    .header-icon-link, .social-icon.header-icon-link {
        font-size: 1.7rem;
        padding: 0 10px;
        color: #fff;
    }
    .header-icon-link:hover, .social-icon.header-icon-link:hover {
        color: #63c8ff;
    }
    .header-nav {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}
@media (min-width: 901px) {
    .sidebar, .close-sidebar, .menu-btn {
        display: none !important;
    }
}

.nosotros-section {
    max-width: 1100px;
    margin: 40px auto 40px auto;
    padding: 0 20px;
}
.nosotros-title {
    font-size: 2.2rem;
    color: #17497a;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 700;
}
.nosotros-subtitle {
    font-size: 1.5rem;
    color: #039be5;
    margin: 40px 0 18px 0;
    font-weight: 600;
    text-align: center;
}
.nosotros-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.nosotros-text {
    flex: 1 1 320px;
    font-size: 1.13rem;
    color: #222;
    line-height: 1.7;
    text-align: justify;
}
.nosotros-img {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nosotros-img img {
    max-width: 340px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(23, 73, 122, 0.10);
}
@media (max-width: 900px) {
    .nosotros-content {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 32px;
    }
    .nosotros-img img {
        max-width: 98vw;
    }
} 

.contacto-section {
    max-width: 1200px;
    margin: 60px auto 60px auto;
    padding: 0 20px;
}
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}
.contacto-card {
    background: #f6f8fa;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(23, 73, 122, 0.07);
    padding: 38px 24px 32px 24px;
    text-align: center;
    min-width: 220px;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contacto-icon {
    background: #2196f3;
    color: #fff;
    font-size: 2.5rem;
    border-radius: 8px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.contacto-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}
.contacto-info {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.6;
}
@media (max-width: 1100px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contacto-card {
        max-width: 98vw;
    }
}

.blog-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}
.blog-edit-btn {
    background: #039be5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.blog-edit-btn:hover {
    background: #0277bd;
}
.blog-delete-btn {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.blog-delete-btn:hover {
    background: #b71c1c;
}

.blog-edit-form input[type="text"],
.blog-edit-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #b0bec5;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.blog-edit-form label {
    font-weight: 500;
    color: #17497a;
    display: block;
    margin-bottom: 6px;
}
.blog-edit-form .btn-primary {
    background: #039be5;
}
.blog-edit-form .btn-secondary {
    background: #b0bec5;
    color: #17497a;
}
.blog-edit-form .btn-primary:hover {
    background: #0277bd;
}
.blog-edit-form .btn-secondary:hover {
    background: #78909c;
}

.logout-btn {
    display: inline-block;
    background: none;
    color: #888;
    border: none;
    font-size: 0.95rem;
    margin-top: 10px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.logout-btn:hover {
    color: #e53935;
    background: none;
}

.welcome-msg {
    color: #17497a;
    font-weight: 500;
    margin-right: 10px;
}
#logoutHeaderBtn.logout-btn {
    margin-top: 0;
    font-size: 1rem;
    text-decoration: underline;
    background: none;
    color: #888;
    border: none;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}
#logoutHeaderBtn.logout-btn:hover {
    color: #e53935;
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    z-index: 10000;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #1ebe57;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    color: #fff;
}
@media (max-width: 600px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.7rem;
        bottom: 16px;
        right: 16px;
    }
}

.consulta-float {
    position: fixed;
    right: 24px;
    bottom: 90px;
    background: #039be5;
    color: #fff;
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 9999;
    text-decoration: none;
    padding: 0 18px;
    gap: 10px;
    height: 48px;
    min-width: 48px;
    transition: background 0.2s, box-shadow 0.2s;
}
.consulta-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    margin-left: 6px;
    white-space: nowrap;
}
.consulta-float:hover {
    background: #0277bd;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    color: #fff;
}
@media (max-width: 600px) {
    .consulta-float {
        right: 16px;
        bottom: 70px;
        font-size: 1.1rem;
        padding: 0 10px;
        height: 40px;
    }
    .consulta-label {
        font-size: 0.95rem;
    }
}

.consulta-form {
    background: #f7fafd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(23,73,122,0.08);
    padding: 24px 28px;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.consulta-field label {
    font-weight: 500;
    color: #17497a;
    display: block;
    margin-bottom: 6px;
}
.consulta-field input[type="text"],
.consulta-field input[type="number"],
.consulta-field input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #b0bec5;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.consulta-form .btn-primary {
    background: #039be5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.consulta-form .btn-primary:hover {
    background: #0277bd;
}
.consulta-mensaje {
    margin-top: 18px;
    color: #039be5;
    font-weight: 500;
    text-align: center;
}
@media (max-width: 600px) {
    .consulta-form {
        padding: 12px 8px;
        max-width: 98vw;
    }
}

.edit-card-form {
    background: #f7fafd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(23,73,122,0.08);
    padding: 24px 28px;
    max-width: 400px;
    margin: 0 auto 24px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.edit-card-form label {
    font-weight: 500;
    color: #17497a;
    display: block;
    margin-bottom: 6px;
}
.edit-card-form input[type="text"],
.edit-card-form input[type="number"],
.edit-card-form input[type="email"],
.edit-card-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #b0bec5;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.edit-card-form input:focus,
.edit-card-form textarea:focus {
    border: 1.5px solid #039be5;
}
.edit-card-form .btn-primary {
    background: #039be5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}
.edit-card-form .btn-primary:hover {
    background: #0277bd;
}
.edit-card-img {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}
.edit-card-img img {
    box-shadow: 0 2px 8px rgba(23,73,122,0.10);
    border-radius: 10px;
}

.edit-cards-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
#editCardsContainer {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 24px;
}
.edit-card-form {
    min-width: 320px;
    max-width: 400px;
    flex: 1 1 320px;
}
@media (max-width: 900px) {
    #editCardsContainer {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
}

.edit-card-form textarea[name="desc"] {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    resize: none;
    background: #f7fafd;
    color: #222;
    font-size: 1rem;
    border: 1px solid #b0bec5;
    border-radius: 5px;
    box-sizing: border-box;
    pointer-events: auto;
    user-select: text;
}