/* Usar font-display: swap para fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

/* O si usas @font-face */
@font-face {
    font-family: 'Poppins';
    src: url('https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfedw.woff2') format('woff2');
    font-display: swap;
    /* ... otras propiedades */
}

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

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

body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: whitesmoke;
    color: black;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin-right: auto;
    transition: 1s;
}

a:hover {
    color: whitesmoke;
}

a:visited {
    color: grey;
    transition: 1s;    
}

.page-container{
    display: grid;  
    grid-template-rows: 60px auto 1fr 50px;
    min-height: 100vh;
    gap: 0;
    padding: 0;  /* Eliminar padding del contenedor */
}

h1, h3, h4 {
    text-align: center;
    padding: 3px 3px;     
}

header {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, rgb(240, 190, 110) 0%, rgb(232, 176, 92) 50%, rgb(238, 150, 28) 100%);
    align-items: center;
    padding: 5px 20px;
    gap: 10px;    
    height: auto; 
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
      
header img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transition: filter 0.5s ease, box-shadow 0.5s ease;
    object-fit: cover;
}

header img:hover {
    filter: brightness(1.3) contrast(1.1);
    box-shadow: 0 0 20px rgba(232, 176, 92, 0.8), 0 0 30px rgba(232, 176, 92, 0.5);
}

/* Barra de búsqueda en el header */
.header-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 12px;
    gap: 8px;
    max-width: 250px;
    flex: 1;
    margin: 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header-search:focus-within {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background: #f8f9fa;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 5px;
    font-size: 14px;
    color: #333;
}

.header-search input::placeholder {
    color: #999;
}

.header-search button {
    background: none;
    border: none;
    color: rgb(232, 176, 92);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.header-search button:hover {
    transform: scale(1.1);
    color: rgb(8, 34, 75);
}

.header-search i {
    font-size: 16px;
}

nav {
    display: flex;
    justify-content: space-evenly;
    width: auto;
    align-items: center;
    font-size: 24px;
    padding: 0;
    gap: 25px;
}

nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

nav a:hover {
    color: rgb(8, 34, 75);
    background-color: rgba(8, 34, 75, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(8, 34, 75, 0.2);
}

nav a i {
    transition: transform 0.3s ease;
}

nav a:hover i {
    transform: scale(1.1);
}

/* Botón de modo oscuro en el nav */
nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

nav button:hover {
    background-color: rgba(8, 34, 75, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(8, 34, 75, 0.2);
}

nav button i {
    transition: transform 0.3s ease;
}

nav button:hover i {
    transform: scale(1.1) rotate(15deg);
}

/* Leyenda de los íconos del nav */
.menu-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.5s ease;
    color: rgb(8, 34, 75);
    text-align: center;
    pointer-events: none;
}

nav a {
    position: relative;
}

.slogan {    
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgb(235, 185, 100) 0%, rgb(232, 176, 92) 50%, rgb(228, 168, 85) 100%);
    margin: 0;
    padding: 15px 20px 20px 20px;
    gap: 0;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
}

/* Estilos armónicos para h1 y h3 dentro del slogan */
.slogan h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 5px 0 0 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.slogan h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4a5d6e;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

/* Animación para h3 del slogan */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main{
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: aliceblue;
    margin: 10px 20px 0 20px;
    padding: 10px;
}

.card {
    background-color: aliceblue;
    border-radius: 15px; 
    width: 95%;
    display: flex;
    flex-direction: column;   
    box-shadow: 5px 5px 20px gray;
    padding: 5px;
    margin: 5px;
    transition: all 0.3s ease-in-out;
    align-content: center;    
}

.card img {
    width: 100%;
    border-radius: 15px 15px 0 0;
}

.card button {
    background-color: rgb(232, 176, 92);
    color: white;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.card-container {
    background-color: aliceblue;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    border-radius: 5px;
    gap: 10px;
    align-items: start;
    grid-auto-flow: row dense;
}

.card-text {
    padding: 5px;
    text-align: center;
    justify-content: flex-start;    
}

.usuario-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 5px;
}

.rating-section {    
    gap: 5px;        
}

.star {
    font-size: 24px;
    color: gray;
    transition: color 0.3s;
    cursor: pointer;
}

.star.active {
    color: gold;
}

.icon {
    font-size: 18px;
    margin-left: 30px;        
    cursor: pointer;
    transition: transform 0.2s;    
}

.icon:hover {
    transform: scale(1.2);
}

.share-menu-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;        
}

.share-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.share-menu a:hover {
    background-color: #f0f0f0;
}

.conf-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
    margin: 10px 20px 0 20px;
    border-radius: 15px;
    background-color: aliceblue;
}

.conf-container iframe {
    display: grid;
    border-radius: 10px;
    align-content: center;
    box-shadow: 5px 5px 20px gray;
    width: 100%;
    height: 300px;
    justify-content: center;
}

.conf-container h3, 
.conf-container p {
    width: 100%;
    text-align: center;
}

.sidebar {
    background-image: url("./media/telecomunicaciones\,\ .png");  
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: aliceblue;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;   
}

.sidebar h2,
.sidebar h3 {
    color: whitesmoke;
    font-weight: bold;
    margin: 10px;
}

.sidebar img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 5px 5px 20px gray;
    /* Efecto de fundido en los bordes */
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, 
                                        black 45%, 
                                        rgba(0,0,0,0.5) 70%,
                                        transparent 100%);
    mask-image: radial-gradient(ellipse 85% 85% at center, 
                                black 45%, 
                                rgba(0,0,0,0.5) 70%,
                                transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.sidebar p {    
    background-color: aliceblue;
    padding: 10px;
    margin: 10px;
    color: black;
    border-radius: 5px;
    box-shadow: 5px 5px 20px gray;
}

#libro {
    width: 60%;
    box-shadow: 5px 5px 20px gray;
    border-radius: 1px;
}

.social-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    gap: 50px;
    padding-left: 10px;
}

.social-links a {
    font-size: 2em;
    color: rgb(232, 176, 92);    
}

.social-links a:hover {
    color: whitesmoke;
}

.container-fluid {
    margin: 10px 20px 0 20px;
}

.container-fluid a {
    color: rgb(222, 153, 51);
    font-weight: bold;
}

.container-fluid a:hover {
    color: rgb(8, 34, 75);
}

.contacto { 
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-image: url("./media/telecomunicaciones\,\ .png");
    background-size: cover;
    background-position: center;
    min-height: 500px;
    margin: 0;
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

.contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 34, 75, 0.55);
    pointer-events: none;
}

.contacto > * {
    position: relative;
    z-index: 1;
}

.contacto-intro {
    color: white;
    margin-bottom: 32px;
}

.contacto-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.contacto-intro p {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
    max-width: 480px;
}

.form-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 36px 40px;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.12);
    width: 100%;
    max-width: 600px;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(232, 176, 92, 0.25);
}

.form-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgb(232, 176, 92), rgb(215, 148, 45));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    box-shadow: 0 4px 14px rgba(232, 176, 92, 0.4);
}

.form-header-icon i {
    color: white;
    font-size: 20px;
}

.form-header h2 {
    color: #1a2740;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

.form-header p {
    color: #8a96a3;
    font-size: 0.82rem;
    margin: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    margin-top: 0;
    font-weight: 600;
    font-size: 0.8rem;
    color: #2c3e50;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(200, 155, 75);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrapper .textarea-icon {
    top: 13px;
    transform: none;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 10px 12px 10px 36px;
    margin-top: 0;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background: #f8fafc;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: rgb(232, 176, 92);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(232, 176, 92, 0.18);
}

.form-container textarea {
    resize: vertical;
    min-height: 110px;
    max-height: 200px;
    overflow: auto;
    line-height: 1.5;
    padding-top: 10px;
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #9aa5b4;
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 20px 0;
}

.form-check input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: rgb(232, 176, 92);
    cursor: pointer;
    border: none;
    padding: 0;
    box-shadow: none;
}

.form-check label {
    font-size: 0.78rem;
    color: #6b7a8d;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1.4;
}

label {
    display: block;   
    margin-top: 10px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {   
    max-width: 100%;
    max-height: 200px;
    width: 100%;   
    height: auto;
    resize: none;
    overflow: auto;
}

#form-message {
    margin-top: 10px;
    color: green;
    font-weight: bold;
}

.boton-submit {
    background: linear-gradient(135deg, rgb(232, 176, 92) 0%, rgb(215, 148, 45) 100%);
    color: white;
    padding: 13px 24px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boton-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232, 176, 92, 0.5);
}

@keyframes burbujaFadeIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(142, 68, 173, 0); }
    100% { box-shadow: 0 0 0 0 rgba(142, 68, 173, 0); }
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background-color: greenyellow;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: popIn 0.6s ease, pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(2deg);
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
}

.whatsapp-float a {
    text-decoration: none;
    color: inherit;
}

.social-links-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 40%;
}

.social-links-contact a {
    font-size: 1.5em;
    color: white;    
}

.social-links-contact a:hover {
    color: rgb(8, 34, 75);
}

.accordion img {
    border-radius: 25px;
    float: left;
    margin-right: 20px; 
    margin-bottom: 10px;
    width: 30%;
}

.clipping-app {
    display: flex;
    flex-direction: column;         
    border: 1px dotted black;
}

#formularioNoticias {
    width: 30%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    width: 100%;
}

#formularioNoticias input,
#formularioNoticias select {
    border-radius: 8px;
    border: solid 1px grey;
    padding: 8px 16px;
    margin-top: 10px;
}

#formularioNoticias button {
    width: 100%;
    background-color: rgb(53, 50, 50);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

.noticias-container {
    display: flex;   
    flex-direction: column;   
    align-items: center;
    justify-content: space-between;
    padding: 10px;    
    background-color: rgb(232, 176, 92);
    height: 50px;
}

.item-category {
    font-size: 12px;
    align-self: flex-end;
}

#btnSubir {
    background-color: rgb(53, 50, 50);
    color: white;
    padding: 10px 10px;
    position: fixed;
    bottom: 50px;
    right: 30px;    
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#btnSubir:hover {
    background-color: #595a5c;
}

footer {
    background: linear-gradient(135deg, rgb(240, 190, 110) 0%, rgb(232, 176, 92) 50%, rgb(220, 160, 75) 100%);
    display: flex;
    flex-direction: row;    
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    margin: 0;  /* Sin margin */
    width: 100%;
}

footer a {
    color: white;
}

.search-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    width: 50%;
    border-radius: 5px;
    gap: 10px;
}

.search-container input {
    border-radius: 5px;
    border: none;
    padding: 5px;
    width: 100%;
    height: 30px;
} 

.search-container button {
    background-color: rgb(53, 50, 50);
    border: none;
    color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

/* Personalización de Toastr */
.toast-success {
    background-color: #51A351 !important;
}

.toast-error {
    background-color: #BD362F !important;
}

.toast-info {
    background-color: rgb(232, 176, 92) !important;
}

.toast-warning {
    background-color: #F89406 !important;
}

#toast-container > div {
    opacity: 0.95;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    border-radius: 8px;
}

#toast-container > div:hover {
    box-shadow: 0 0 18px rgba(0,0,0,0.4);
    opacity: 1;
    cursor: pointer;
}

/* Widget de Twitter */
.twitter-widget {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.twitter-widget h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1da1f2;
  font-size: 1.2em;
}

/* Modo oscuro */
.dark-mode .twitter-widget {
  background-color: #23272b;
}

.dark-mode .twitter-widget h3 {
  color: #1da1f2;
}

@media (max-width: 600px) {
  .twitter-widget {
    margin-top: 15px;
  }
}

/* MEDIA QUERIES */

/* Móviles (0px - 576px) */
@media screen and (max-width: 576px) {
    body {
        flex-wrap: wrap;        
    }
    
    .page-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    header {
        padding: 5px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    header img {
        display: none;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }
    
    nav {
        justify-content: flex-end;
        gap: 10px;
        font-size: 18px;
    }
    
    .slogan {
        margin: 0;
    }
    
    main {
        grid-template-columns: 1fr;
        margin: 10px 10px 0 10px;
    } 
    
    .card-container {
        grid-template-columns: 1fr; 
    }
    
    .conf-container {
        grid-template-columns: 1fr;
    }
    
    .conf-container iframe {
        height: 200px;
    }
    
    .container-fluid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .social-links-contact {
        width: 100%;
        flex-direction: row !important;
        justify-content: center;
        gap: 20px;
        margin-top: 5px;
    }
    
    .form-container {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contacto { 
        padding: 30px 16px;
    }
    
    .sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .search-container {
        width: 100%;
        flex-direction: column;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Estilos armónicos para móviles */
    .slogan h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin: 5px 0 0 0;
    }
    
    .slogan h3 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
}

/* Tablets (577px - 900px) */
@media (min-width: 577px) and (max-width: 900px) {
    body {
        flex-wrap: wrap;
    }
    
    .page-container {
        padding: 0;
    }
    
    header {
        padding: 5px 15px;
    }
    
    header img {
        width: 40px;
        height: 40px;
    }
    
    .header-search {
        max-width: 180px;
        margin: 0 10px;
    }
    
    nav {
        gap: 12px;
        font-size: 20px;
    }
    
    .slogan {
        margin: 0;
    }
    
    main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin: 10px 15px 0 15px;
    } 
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .conf-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .conf-container iframe {
        height: 250px;
    }
    
    .social-links-contact {
        width: 60%;
    }
    
    .form-container {
        max-width: 520px;
        padding: 30px 32px;
    }
    
    .contacto { 
        padding: 40px 20px;
    }
    
    /* Estilos armónicos para tablets */
    .slogan h1 {
        font-size: 2.2rem;
        letter-spacing: 0.8px;
        margin: 5px 0 0 0;
    }
    
    .slogan h3 {
        font-size: 1.15rem;
        letter-spacing: 0.4px;
    }
}

/* Pantallas medianas (901px - 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
    body {
        flex-wrap: wrap;
    }
    
    .page-container {
        padding: 0;
    }
    
    header {
        padding: 5px 20px;
    }
    
    .header-search {
        max-width: 220px;
    }
    
    .slogan {
        margin: 0;
    }
    
    main {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto;
        margin: 10px 20px 0 20px;
    } 
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .conf-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .conf-container iframe {
        height: 280px;
    }
    
    .social-links-contact {
        width: 50%;
    }
}

/* Pantallas grandes (más de 1200px) */
@media (min-width: 1201px) {
    .page-container {
        padding: 0;
    }
    
    header {
        padding: 5px 20px;
    }
    
    .header-search {
        max-width: 280px;
    }
    
    .slogan {
        margin: 0;
    }
    
    main {
        margin: 10px 20px 0 20px;
    }
    
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .conf-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Estilos armónicos para pantallas medianas */
    .slogan h1 {
        font-size: 2.8rem;
        letter-spacing: 1.2px;
        margin: 8px 0 0 0;
    }
    
    .slogan h3 {
        font-size: 1.25rem;
        letter-spacing: 0.5px;
    }
}

/* DARK MODE STYLES */

body.dark-mode,
.dark-mode .page-container {
  background-color: #181a1b !important;
  color: #f1f1f1 !important;
}

.dark-mode header,
.dark-mode footer {
  background: linear-gradient(135deg, #2a2e32 0%, #23272b 50%, #1d2125 100%) !important;
  color: #f1f1f1 !important;
}

.dark-mode header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .slogan {
  background: linear-gradient(135deg, #272b2f 0%, #23272b 50%, #1f2327 100%) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .slogan,
.dark-mode .card,
.dark-mode .card-container,
.dark-mode .conf-container,
.dark-mode .sidebar,
.dark-mode .form-container,
.dark-mode .container-fluid,
.dark-mode .accordion-item,
.dark-mode .clipping-app {
  background-color: #23272b !important;
  color: #f1f1f1 !important;
}

/* Estilos armónicos para h1 y h3 en modo oscuro */
.dark-mode .slogan h1 {
  color: #e8e8e8 !important;
}

.dark-mode .slogan h3 {
  color: #888888 !important;
}

.dark-mode .btn,
.dark-mode .boton-submit,
.dark-mode #btnSubir {
  background-color: #444950 !important;
  color: #f1f1f1 !important;
}

.dark-mode .form-container input,
.dark-mode .form-container select,
.dark-mode .form-container textarea {
    background: #2a2f35 !important;
    border-color: #3a4048 !important;
    color: #e8e8e8 !important;
}

.dark-mode .form-container input:focus,
.dark-mode .form-container select:focus,
.dark-mode .form-container textarea:focus {
    background: #2e343b !important;
    border-color: rgb(232, 176, 92) !important;
}

.dark-mode .form-header h2 {
    color: #e8e8e8 !important;
}

.dark-mode .form-header {
    border-bottom-color: rgba(232, 176, 92, 0.2) !important;
}

.dark-mode .form-group label {
    color: #b0bec5 !important;
}

.dark-mode .char-counter {
    color: #6b7a8d !important;
}

.dark-mode .form-check label {
    color: #8a96a3 !important;
}

.dark-mode .input-icon-wrapper > i {
    color: rgb(232, 176, 92) !important;
}

.dark-mode .contacto-intro h2,
.dark-mode .contacto-intro p {
    color: white !important;
}

.dark-mode a {
  color: #f1c40f !important;
}

.dark-mode a:hover {
  color: #ffe066 !important;
}

.dark-mode .header-search {
  background: #23272b !important;
  color: #f1f1f1 !important;
}

.dark-mode .header-search input {
  color: #f1f1f1 !important;
}

.dark-mode .star {
  color: #ffe066 !important;
}

.dark-mode .icon {
  color: #ffe066 !important;
}

.dark-mode .social-links-contact a,
.dark-mode .social-links a {
  color: #ffe066 !important;
}

.dark-mode #darkModeIcon.fas.fa-sun {
  color: #ffe066 !important; /* Amarillo claro, visible en fondo oscuro */
}

/* Estilos del nav modernizado en modo oscuro */
.dark-mode nav a {
  color: #f1c40f !important;
}

.dark-mode nav a:hover {
  background: rgba(241, 196, 15, 0.12) !important;
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.15) !important;
}

.dark-mode nav button {
  color: #f1c40f !important;
}

.dark-mode nav button:hover {
  background: rgba(241, 196, 15, 0.12) !important;
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.15) !important;
}

/* Animación de brillo para el ícono de Servicios en el nav */
@keyframes navServiciosGlow {
  0%, 100% {
    text-shadow: 0 0 4px rgba(232, 176, 92, 0.4), 0 0 8px rgba(232, 176, 92, 0.2);
    color: inherit;
  }
  50% {
    text-shadow: 0 0 10px rgba(238, 150, 28, 0.9), 0 0 20px rgba(238, 150, 28, 0.6), 0 0 30px rgba(232, 176, 92, 0.4);
    color: rgb(238, 150, 28);
  }
}

.nav-servicios i {
  animation: navServiciosGlow 2s ease-in-out infinite;
  display: inline-block;
}

/* Efecto de aparición progresiva */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   TOOLTIPS INFORMATIVOS
   ============================================ */

.custom-tooltip {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  max-width: 200px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

.custom-tooltip.show {
  opacity: 1;
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.dark-mode .custom-tooltip {
  background-color: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
}

.dark-mode .custom-tooltip::after {
  border-top-color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   BÚSQUEDA EN TIEMPO REAL
   ============================================ */

.header-search {
  position: relative;
}

.search-results-container {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-header {
  padding: 12px 15px;
  background: linear-gradient(135deg, #e8b05c 0%, #d19a47 100%);
  color: white;
  font-size: 0.9em;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.search-results-list {
  max-height: 350px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

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

.search-result-title {
  font-weight: 600;
  font-size: 0.95em;
  color: #333;
  margin-bottom: 5px;
}

.search-result-excerpt {
  font-size: 0.85em;
  color: #666;
  line-height: 1.4;
}

.search-result-excerpt mark,
.search-result-title mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.search-results-more {
  padding: 10px 15px;
  text-align: center;
  font-size: 0.85em;
  color: #666;
  background-color: #f8f9fa;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
}

.search-no-results {
  padding: 30px 20px;
  text-align: center;
  color: #999;
}

.search-no-results i {
  font-size: 2em;
  margin-bottom: 10px;
  opacity: 0.5;
}

.search-no-results p {
  font-size: 0.9em;
  margin: 0;
}

/* Modo oscuro para búsqueda */
.dark-mode .search-results-container {
  background: #2b2b2b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dark-mode .search-result-item {
  border-bottom-color: #444;
}

.dark-mode .search-result-item:hover {
  background-color: #333;
}

.dark-mode .search-result-title {
  color: #e0e0e0;
}

.dark-mode .search-result-excerpt {
  color: #b0b0b0;
}

.dark-mode .search-results-more {
  background-color: #1a1a1a;
  color: #888;
}

.dark-mode .search-no-results {
  color: #666;
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.skeleton-title {
  height: 24px;
  width: 80%;
  margin-bottom: 15px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  height: 36px;
  width: 120px;
  margin-top: 15px;
  border-radius: 6px;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.skeleton-media {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-media-icon {
  font-size: 3em;
  opacity: 0.3;
}

/* Modo oscuro para skeletons */
.dark-mode .skeleton {
  background: linear-gradient(
    90deg,
    #2a2a2a 25%,
    #3a3a3a 50%,
    #2a2a2a 75%
  );
  background-size: 200% 100%;
}

/* ============================================
   CONTADOR DE VISITAS
   ============================================ */

#contador-visitas {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin: 20px 0;
  font-family: 'Roboto', sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contador-visitas:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#contador-visitas i {
  font-size: 1.5em;
  animation: pulse 2s ease-in-out infinite;
}

.visitas-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.visitas-numero {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.visitas-texto {
  font-size: 0.85em;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Modo oscuro para contador */
.dark-mode #contador-visitas {
  background: linear-gradient(135deg, #4c5fd7 0%, #5a3d8a 100%);
  box-shadow: 0 4px 15px rgba(76, 95, 215, 0.4);
}

.dark-mode #contador-visitas:hover {
  box-shadow: 0 6px 20px rgba(76, 95, 215, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  #contador-visitas {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  
  .visitas-numero {
    font-size: 1.5em;
  }
}

.dark-mode .skeleton-card {
  background: #2b2b2b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .search-results-container {
    max-height: 300px;
  }

  .search-result-title {
    font-size: 0.9em;
  }

  .search-result-excerpt {
    font-size: 0.8em;
  }
}

/* ============================================
   MODAL DE VISTA PREVIA
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: 20px;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, #e8b05c 0%, #d19a47 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
  flex: 1;
  padding-right: 20px;
}

.close-modal {
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover,
.close-modal:focus {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.modal-image-container {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.modal-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.modal-description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

.modal-meta {
  display: flex;
  gap: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-meta span {
  font-size: 0.95em;
  color: #555;
  font-weight: 500;
}

.modal-media {
  margin: 20px 0;
}

.modal-media iframe,
.modal-media audio {
  width: 100%;
  border-radius: 8px;
}

.modal-footer {
  padding: 20px 30px;
  background-color: #f8f9fa;
  border-radius: 0 0 16px 16px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-modal {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-read-full {
  background: linear-gradient(135deg, #e8b05c 0%, #d19a47 100%);
  color: white;
}

.btn-read-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 176, 92, 0.4);
}

.btn-share {
  background-color: #fff;
  color: #333;
  border: 2px solid #ddd;
}

.btn-share:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}

/* Botón de Vista Previa en las cards */
.btn-preview {
  background: linear-gradient(135deg, #93949b 0%, #58555a 100%);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: inline-block;
}

.btn-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Modo oscuro para el modal */
.dark-mode .modal-content {
  background-color: #2b2b2b;
  color: #e0e0e0;
}

.dark-mode .modal-description {
  color: #e0e0e0;
}

.dark-mode .modal-meta {
  background-color: #1a1a1a;
}

.dark-mode .modal-meta span {
  color: #b0b0b0;
}

.dark-mode .modal-footer {
  background-color: #1a1a1a;
}

.dark-mode .btn-share {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border-color: #555;
}

.dark-mode .btn-share:hover {
  background-color: #4a4a4a;
  border-color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .modal-header h2 {
    font-size: 1.2em;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn-modal {
    width: 100%;
    justify-content: center;
  }
}