body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa; /* Mantener un fondo claro y neutro para el cuerpo general */
    color: #333; /* Color de texto oscuro para legibilidad */
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

a {
    transition: all 0.3s ease;
    color: #A7C7E7; /* Un celeste pastel para enlaces */
    text-decoration: none; /* Asegura que los enlaces no tengan subrayado por defecto */
}

a:hover {
    color: #8bbcdc; /* Un tono ligeramente más oscuro al pasar el ratón */
    text-decoration: underline; /* Agrega subrayado al pasar el ratón para indicar que es un enlace */
}

img {
    max-width: 100%;
    height: auto;
}

/* Contenedor principal para centrar contenido */
.container {
    max-width: 1200px; /* Limita el ancho máximo del contenido */
    margin: 0 auto; /* Centra el contenedor */
    padding: 0 15px; /* Añade padding lateral para evitar que el contenido toque los bordes */
}

/* * ====================================================
 * HEADER Y NAVEGACIÓN
 * ====================================================
 */
header {
    background-color: #f1d4d4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

/* Ocultar header (solo se activa vía JS) */
header.hide {
    transform: translateY(-100%);
}

/* Contenedor flex para centrar y distribuir */
header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Título */
header h1 {
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    flex: 1 1 100%; /* para móvil ocupe toda la fila */
    text-align: center;
}

/* Navegación */
header nav {
    flex: 1 1 100%;
    text-align: center;
}

header nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
    color: #FADCD2;
    transform: translateY(-2px);
}

/* Estilos para escritorio (≥768px) */
@media (min-width: 768px) {
    header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    header h1, header nav {
        flex: initial;
        text-align: left;
    }
    header nav {
        text-align: right;
    }
}

/* Estilos para móviles (<768px) */
@media (max-width: 767.98px) {
    header .container {
        justify-content: center;
        gap: 0.5rem;
    }

    header h1 {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    header nav {
        flex: 1 1 100%;
        text-align: center;
    }

    header nav a {
        display: inline-block;
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
}

/* Estilos para tablet (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    header nav a {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
}

/* * ====================================================
 * SECCIÓN HERO
 * ====================================================
 */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), /* Ligeramente más claro para un toque pastel */
        url('../img/fondoinicio.jpeg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    color: #ffffff; /* Texto blanco para contraste con el fondo de imagen */
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.hero .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    background-color: #FBC4D4; /* Rosa pastel para el botón */
    color: #2c3e50; /* Color oscuro para el texto del botón */
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none; /* Asegura que los botones no tengan subrayado */
}

.hero .btn:hover {
    background-color: #FADCD2; /* Naranja pastel al pasar el ratón */
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.frase-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.frase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.frase.active {
    opacity: 1;
    z-index: 1;
}

#frases-carousel h2 {
    font-size: 1.8rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    #frases-carousel h2 {
        font-size: 1.4rem;
    }
}

/* * ====================================================
 * SECCIONES GENERALES Y TÍTULOS
 * ====================================================
 */
section {
    padding: 60px 0; /* Padding vertical, el horizontal lo maneja .container */
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #C9E4DE; /* Verde pastel para la línea decorativa */
    margin: 10px auto 0;
    border-radius: 10px;
}

section p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: #555;
}

.centrado-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra en el eje vertical */
    align-items: center;      /* centra en el eje horizontal */
    min-height: 100vh;        /* ocupa todo el alto de la pantalla */
    text-align: center;       /* centra el texto */
}

/* ====================================================
  SECCIÓN SOBRE MÍ
  ====================================================
 */
#sobre-mi img {
    max-width: 660px;
    width: 100%;
    height: auto;
    object-fit: contain !important; /* Uso de !important para anular cualquier regla anterior */
    display: block;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #FADCD2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-radius: 12px;
}
#sobre-mi img:hover {
    transform: scale(1.05);
}

/* * ====================================================
 * SECCIÓN LAS PALMAS
 * ====================================================
 */
.imagen-laspalmas {
    width: 400px;
    height: 280px;
    display: block;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #FADCD2; /* Naranja pastel */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-radius: 12px; /* Bordes suavemente redondeados */
    object-fit: cover; /* Asegura que la imagen se adapte bien sin distorsionarse */
}

.imagen-laspalmas:hover {
    transform: scale(1.05);
}

/* * ====================================================
 * SECCIÓN SERVICIOS
 * ====================================================
 */
#servicios {
    padding: 3rem 0; 
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
}

#servicios h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
    font-weight: 700;
}

#servicios .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

#servicios .col-md-4 {
    background: #D4E6F1; /* Celeste pastel para las tarjetas de servicio */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    max-width: 350px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#servicios .col-md-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

#servicios h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000;
}

#servicios p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* Estilo para el botón Leer Más/Menos en Servicios */
.card-custom .toggle-btn {
    align-self: flex-start;
    padding: 5px 15px;
    margin-bottom: 15px;
    background-color: #e0f7fa;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-custom .toggle-btn:hover {
    background-color: #007bff;
    color: white;
}

/* Estilos de Card Custom heredados */
.card-custom {
    padding: 20px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}


/* * ====================================================
 * SECCIÓN BLOG / ARTÍCULOS
 * ====================================================
 */
#blog {
    background-color: #C9E4DE; /* Verde pastel para la sección de blog */
    padding: 3rem 0;
    text-align: center;
    color: #333;
}

/* Título de la sección de blog */
#blog h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

#blog h2::after { /* Modificación para usar el after del título general */
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #A7C7E7; /* Celeste pastel */
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Estilo general de las tarjetas de artículo */
.article-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.article-card .card-body {
    padding: 25px;
    background-color: #ffffff;
}

.article-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}

.article-card .card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    flex-grow: 1;
}

/* Botón "Leer Más/Menos" */
.read-more-btn {
    background-color: #A7C7E7;
    border-color: #A7C7E7;
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #8bbcdc;
    border-color: #8bbcdc;
    color: white;
}

/* Área de contenido completo del Blog */
.full-content-area {
    margin-top: 30px;
    padding: 20px 25px 15px;
    background-color: #f8f9fa; /* Fondo ligeramente diferente para el contenido extendido */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


/* * ====================================================
 * SECCIÓN CONTACTO
 * ====================================================
 */
.contact-section {
    background: linear-gradient(135deg, #FADCD2 0%, #FBC4D4 100%); /* Degradado de naranja a rosa pastel */
    padding: 60px 0;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2c3e50; /* Color oscuro para la línea del título */
    margin: 8px auto 0;
    border-radius: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #444;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    flex: 1 1 450px;
    min-width: 280px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 2px solid #2c3e50;
    border-radius: 0;
    font-size: 1rem;
    color: #2c3e50;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #2c3e50;
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #C9E4DE;
}

.submit-btn {
    background: linear-gradient(135deg, #2c3e50, #C9E4DE);
    color: white;
    border: none;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 6px 16px rgba(201, 228, 222, 0.5);
    transform: translateY(-3px);
}

/* Contact info cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1 1 300px;
    min-width: 280px;
    color: #2c3e50;
}

.info-card {
    background: #D4E6F1;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.info-card i {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.info-card h4 {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.3rem;
}

.info-card p, .info-card li {
    font-size: 1rem;
    color: #555;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* * ====================================================
 * FOOTER
 * ====================================================
 */
footer {
    background-color: #A7C7E7; /* Celeste pastel para el footer */
    color: #2c3e50; /* Color oscuro para el texto del footer */
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

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

/* Botones reutilizables */
.btn-rounded {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn-primary-custom {
    background-color: #FBC4D4; /* Rosa pastel para el botón primario */
    color: #2c3e50; /* Color oscuro para el texto */
    border: none;
}

.btn-primary-custom:hover {
    background-color: #FADCD2; /* Naranja pastel al pasar el ratón */
    box-shadow: 0 6px 16px rgba(251, 196, 212, 0.3); /* Sombra con el color del botón */
}


/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form,
    .contact-info {
        flex: 1 1 100%;
        min-width: auto;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    section {
        padding: 40px 0;
    }

    .decorated-title {
        font-size: 1.8rem;
    }
    .decorated-title::before,
    .decorated-title::after {
        width: 40px;
        top: auto;
        bottom: -10px;
        transform: none;
    }
    .decorated-title::before {
        left: 20%;
    }
    .decorated-title::after {
        right: 20%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero h2 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    header nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    section h2 {
        font-size: 1.8rem;
    }

    #servicios .col-md-4, #blog .col-md-4 {
        padding: 10px;
        max-width: 90%;
    }
    
    #blog .decorated-title::before,
    #blog .decorated-title::after {
        width: 40px;
        margin-left: -50px;
        margin-right: -50px;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    .hero h2 {
        font-size: 1.6rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    section h2 {
        font-size: 1.6rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .contact-form {
        padding: 20px;
    }
}

/* OTRAS CLASES ESPECÍFICAS */
.descripcion-persona {
    text-align: center;
    margin-top: 15px;
    background-color: #fff0f5;
    border-radius: 10px;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    color: #5a2a41;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 90%;
}

.descripcion-persona strong {
    display: block;
    font-size: 1.3rem;
    color: #b6425c;
    margin-bottom: 5px;
}

.contenedor-texto .contenedor-texto-content img {
    width: 750px;
    height: auto;
}

/* ======================================
   ARTÍCULOS – UNIFICAR TAMAÑOS
====================================== */

/* ======================================
   ARTÍCULOS – MARCOS VISUALES
====================================== */

#articles-list .card {
  background: #ffffff;
  border: 2px solid rgba(44, 62, 80, 0.08); /* marco suave */
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

/* Hover elegante */
#articles-list .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  border-color: rgba(44, 62, 80, 0.18);
}

/* CONTENEDOR DE IMAGEN */
#articles-list img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid rgba(44, 62, 80, 0.08);
}

/* CUERPO */
#articles-list .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* TÍTULO */
#articles-list .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* TEXTO */
#articles-list .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  flex-grow: 1;
}

/* BOTÓN ABAJO Y CENTRADO */
#articles-list .btn {
  margin-top: auto;
  align-self: center;
  border-radius: 30px;
}
@media (max-width: 768px) {
  #articles-list img {
    height: 180px;
  }

  #articles-list .card {
    margin-bottom: 25px;
  }
}

/* ======================================
   BLOQUE HISTORIA – ESTILO SERVICIOS
====================================== */

.bloque-general {
  background: #FFFDFB;
  padding: 60px 0;
}

.bloque-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

/* CARD */
.bloque-item {
  background: linear-gradient(135deg, #FFF1F3, #FBC4D4);
  border-radius: 22px;
  padding: 22px 20px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform .4s ease, box-shadow .4s ease;
}

.bloque-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* IMAGEN */
.bloque-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 15px;
}

/* TITULO */
.bloque-item h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* TEXTO */
.bloque-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  flex-grow: 1;
}

/* BOTÓN */
.bloque-item a.btn-primary-custom {
  margin-top: auto;
  background: linear-gradient(135deg, #0d6efd, #5dade2);
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all .4s ease;
}

.bloque-item a.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13,110,253,.4);
}
@media (max-width: 768px) {
  .bloque-item {
    width: 90%;
    max-width: 350px;
  }
}