@media (max-width: 280px) {
    .Logo {
        width: 60%;
    }
    
    #Logo {
        height: 60px;
    }
    
    .Titulo h1 {
        font-size: 1.3rem;
        padding: 6px 6px 3px;
    }
    
    .header-subtitle {
        font-size: 0.75rem;
        padding: 0 6px 6px;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 5px;
        padding: 5px 0;
    }
    
    .nav li {
        width: 80%;
        margin: 0 auto;
        padding: 4px;
    }
    
    .nominees-title {
        font-size: 1.5rem;
    }
    
    .nominees-subtitle {
        font-size: 0.8rem;
    }
    
    .nominees-image {
        height: 160px;
    }
    
    .servicio-details-content {
        padding: 10px;
    }
    
    .servicio-expandido-header h2 {
        font-size: 1.1rem;
    }
    
    .servicio-expandido-header p {
        font-size: 0.8rem;
    }
    
    .Contenido-footer, .Enlaces-footer {
        font-size: 0.8rem;
    }
    
    .Enlaces-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    /* Ajustes para el mapa en dispositivos ultra pequeños */
    .map-container {
        height: 150px;
    }
    
    .contact-section-map {
        min-height: 220px;
        padding: 8px;
    }
    
    .container {
        padding: 5px;
    }
    
    .contact-section {
        padding: 8px;
    }
    
    .form-container input, 
    .form-container textarea,
    .form-container button {
        padding: 5px;
        font-size: 12px;
    }
}/* Variables */
:root {
    --color-dorado: #e6a910;
    --color-negro: black;
    --color-gris: grey;
    --color-honey: honeydew;
    --color-semibeige: #f4e5d6;
    --color-rojovino: #800020;
    --color-sm: rgba(244, 229, 214, 0.7);
    --color-gr: rgba(128, 128, 128, 0.6);
}

/* ==================== ESTILOS GLOBALES ==================== */
*, *:before, *:after {
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
header {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-negro);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 2px solid var(--color-dorado);
    overflow: hidden;
}

/* Logo y título */
.Logo-Título {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.Logo {
    width: 10%;
    display: flex;
    margin: 0;
    padding: 20px;
    justify-content: left;
    align-items: center;
}

#Logo {
    width: 100%;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--color-dorado);
    border-style: outset;
    object-fit: cover;
}

.Titulo {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin-right: 10%;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.Titulo h1 {
    color: var(--color-dorado);
    padding: 20px 40px 10px;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0;
}

.header-subtitle {
    color: var(--color-dorado);
    font-size: 1.1rem;
    max-width: 800px;
    text-align: center;
    margin-top: 0;
    padding: 0 20px 20px;
    opacity: 0.9;
}

/* Navegación */
.nav {
    width: 100%;
    text-align: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-width: min-content;
    height: 60px;
    list-style: none;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 12px;
    gap: 15px;
}

.nav li {
    background-color: var(--color-negro);
    border: 1px solid var(--color-dorado);
    padding: 8px 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav a {
    text-decoration: none;
    color: var(--color-dorado);
    display: block;
}

.nav li:hover {
    background-color: #666;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.nav li:active {
    transform: scale(0.95);
}

.nav a:focus {
    outline: none;
}

.nav li:has(a:focus) {
    background-color: #888;
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

/* ==================== MAIN ==================== */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-image: url(Fotos/fondo12.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Fix para background-attachment: fixed en iOS */
@supports (-webkit-touch-callout: none) {
    main {
        background-attachment: scroll;
    }
}

/* Fix para textos que podrían desbordarse */
p {
    max-width: 100%;
    word-wrap: break-word;
    margin: 10px 0;
}

/* ==================== SECCIÓN PRINCIPAL ==================== */
.PrincipalMain {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: black;
    overflow-x: hidden;
    box-sizing: border-box;
}

.nominees-container {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto 10px;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.nominees-title {
    font-size: 3rem;
    font-weight: 900;
    color: #222;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: center;
    letter-spacing: -1px;
    width: 100%;
    word-break: break-word;
}

.nominees-subtitle {
    font-size: 1.2rem;
    color: #222;
    margin: 0 0 20px;
    text-align: center;
    padding: 0 10px;
    width: 100%;
    line-height: 1.4;
}

/* ==================== SECCIÓN SERVICIOS ==================== */
.ServiciosMain {
    width: 100%;
    max-width: 1400px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 15px;
    margin: 15px auto 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: auto;
    box-sizing: border-box;
}

.nominees-style {
    width: 100%;
    max-width: 1400px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 15px;
    margin: 0 auto 40px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

/* Grid de servicios */
.Caja-Servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.nominees-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Tarjetas de servicios */
.TipoServicios {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.nominees-card {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.nominees-card:hover, .TipoServicios:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.nominees-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.nominees-image img, .TipoServicios img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.nominees-card:hover .nominees-image img {
    transform: scale(1.05);
}

.nominees-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.project-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.by {
    font-size: 14px;
    color: #777;
}

/* Botones de toggle para mostrar detalles */
.servicio-details {
    width: 100%;
    overflow: hidden;
    padding: 0 15px 15px;
    text-align: center;
}

.toggle-servicios {
    display: none;
}

.toggle-label {
    display: inline-block;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--color-dorado);
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #505050;
    border-radius: 4px;
    margin: 10px 0;
}

.toggle-label:hover {
    background-color: #eee;
    color: var(--color-dorado);
}

.toggle-servicios:checked ~ .toggle-label {
    color: white;
    font-weight: bold;
    background-color: var(--color-dorado);
}

/* Contenedor principal para servicios expandidos */
.contenedor-servicios-fijo {
    position: relative;
    width: 100%;
    min-height: 0;
    height: 0;
    margin-top: 30px;
    margin-bottom: 30px;
    transition: height 0.5s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background-color: transparent;
}

.contenedor-servicios-fijo.activo {
    opacity: 1;
    visibility: visible;
}

/* Contenedores individuales para cada servicio */
.contenedor-servicio-detalle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contenedor-servicio-detalle.activo {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Contenido de cada servicio expandido */
.servicio-details-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 90%;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 0 auto;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.contenedor-servicio-detalle.activo .servicio-details-content {
    transform: translateY(0);
    opacity: 1;
}

/* Encabezado del servicio expandido */
.servicio-expandido-header {
    text-align: center;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    grid-column: 1 / -1;
    transform: translateY(-15px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transition-delay: 0.1s;
}

.contenedor-servicio-detalle.activo .servicio-expandido-header {
    transform: translateY(0);
    opacity: 1;
}

.servicio-expandido-header h2 {
    font-size: 1.7rem;
    margin-top: 0;
    color: #333;
}

.servicio-expandido-header p {
    color: #666;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Items dentro del servicio expandido */
.details-item {
    background-color: #efe5dc;
    border: 1px solid var(--color-gr);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition-delay: calc(var(--index, 0) * 0.1s);
}

.contenedor-servicio-detalle.activo .details-item {
    transform: translateY(0);
    opacity: 1;
}

.servicio-details-content .details-item:nth-child(2) { --index: 1; }
.servicio-details-content .details-item:nth-child(3) { --index: 2; }
.servicio-details-content .details-item:nth-child(4) { --index: 3; }
.servicio-details-content .details-item:nth-child(5) { --index: 4; }

.details-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contenedor-servicio-detalle.activo .details-item:hover {
    transform: translateY(-5px);
}

.details-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.details-item:hover img {
    transform: scale(1.05);
}

.details-item h3 {
    margin: 0;
    padding: 12px 12px 6px;
    font-size: 16px;
    color: #222;
    font-weight: 600;
    background-color: #efe5dc;
}

.details-item p {
    margin: 0;
    padding: 0 12px 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    background-color: #efe5dc;
}

/* ==================== SECCIÓN CONTACTO ==================== */
.ContactoMain {
    margin: 0;
    padding: 0;
    background-color: var(--color-gr);
    color: #333;
    width: 100%;
    box-sizing: border-box;
  box-shadow: 0px 0px 10px 15px var(--color-gr);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    position: relative;
    box-sizing: border-box;
}

.contact-section, .contact-section-map {
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-section-map {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.contact-section h1, .contact-section h2,
.contact-section-map h1, .contact-section-map h2 {
    color: #0052cc;
    margin-top: 0;
}

.contact-section h2, .contact-section-map h2 {
    font-size: 1.4em;
    border-bottom: 2px solid #0052cc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.contact-section p, .contact-section-map p {
    margin: 5px 0;
    line-height: 1.3;
}

/* Formulario de contacto */
.form-container {
    margin-top: 10px;
}

.form-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.form-container input, 
.form-container textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-container button {
    background-color: #0052cc;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    grid-column: 1 / span 2;
}

.form-container button:hover {
    background-color: #003d99;
}

/* Mapa */
.location-info {
    margin-top: 5px;
    margin-bottom: 10px;
}

.location-info p {
    margin: 5px 0;
}

.map-container {
    height: 300px;
    background-color: #e9e9e9;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-gr);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#Mapa {
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%;
}

/* ==================== FOOTER ==================== */
footer {
    width: 100%;
    height: 100%;
    margin: 0%;
    color: var(--color-dorado);
    display: flex;
    background-color: black;
    border-top: 2px solid var(--color-dorado);
}

.Caja-footer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin: 0%;
    padding: 10px;
}

.Contenido-footer {
    width: 50%;
    height: 100%;
    margin-left: 10%;
}

.Enlaces-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 50%;
    height: 100%;
}

#Principal, #Servicios, #Contacto {
    text-decoration: none;
    color: var(--color-dorado);
    border-bottom: 1px solid var(--color-dorado);
}

/* Botón de volver arriba mejorado con efectos */
.back-to-top {
    position: fixed;
    bottom: 20px; /* Ajustado para mejor posición */
    right: 20px; /* Ajustado para mejor posición */
    width: 45px;
    height: 45px;
    background-color: #1F1F1F;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra sutil en estado normal */
    transition: all 0.3s ease; /* Transición suave para todos los efectos */
}

/* Estilo para el SVG */
.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #e6a910; /* Color dorado */
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease; /* Transición suave para la flecha */
}

/* Efecto al pasar el cursor por encima */
.back-to-top:hover {
    transform: translateY(-5px); /* Movimiento hacia arriba */
    box-shadow: 0 5px 15px rgba(5, 5, 5, 0.3); /* Sombra dorada más intensa */
    background-color: #2a2a2a; /* Fondo ligeramente más claro */
}

.back-to-top:hover svg {
    stroke: #ffc21a; /* Color dorado más brillante para la flecha */
    transform: scale(1.1); /* Ligero efecto de zoom en la flecha */
}

/* Para mantener el código JavaScript existente */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}


/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .nominees-projects, .Caja-Servicios {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nominees-title {
        font-size: 4rem;
    }
    
    .servicio-details-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .Logo {
        width: 15%;
    }
    
    .Titulo {
        width: 85%;
        margin-right: 0;
    }
    
    /* Ajustes para mejorar legibilidad y espaciado */
    .ServiciosMain, .nominees-style {
        padding: 25px;
    }
    
    .Titulo h1 {
        font-size: 3rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    /* Asegurar que las imágenes se ajusten correctamente */
    .nominees-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* Header mejorado para móviles */
    .Logo-Título {
        flex-direction: column;
        padding-bottom: 5px;
    }
    
    .Logo {
        width: 30%;
        padding: 15px 15px 5px;
        justify-content: center;
    }
    
    #Logo {
        height: 110px;
    }
    
    .Titulo {
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }
    
    .Titulo h1 {
        font-size: 2.5rem;
        padding: 10px 15px 5px;
    }
    
    .header-subtitle {
        padding: 0 15px 10px;
        font-size: 1rem;
    }
    
    /* Navegación mejorada para móviles */
    .nav ul {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 10px;
        justify-content: center;
    }
    
    .nav li {
        padding: 6px 12px;
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    /* Ajustes del footer */
    .Caja-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .Contenido-footer, .Enlaces-footer {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    
    .Contenido-footer {
        margin-left: 0;
    }
    
    .Enlaces-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Ajustes de la sección de contacto */
    .container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .form-container form {
        grid-template-columns: 1fr;
    }
    
    .form-container button {
        grid-column: 1;
    }
    
    /* Ajuste específico para el mapa en móviles */
    .contact-section-map {
        height: auto;
        min-height: 350px;
    }
    
    .map-container {
        height: 250px;
    }
    
    /* Ajustes de grids y tarjetas */
    .nominees-projects, .Caja-Servicios {
        grid-template-columns: 1fr;
    }
    
    .nominees-title {
        font-size: 3rem;
    }
    
    .servicio-details-content {
        grid-template-columns: repeat(2, 1fr);
        width: 95%;
        gap: 15px;
        padding: 15px;
    }
    
    .details-item img {
        height: 120px;
    }
    
    /* Ajustes de la sección principal */
    .ServiciosMain {
        padding: 20px 15px;
    }
    
    .nominees-style {
        padding: 20px 15px;
    }
    
    .nominees-subtitle {
        font-size: 1.2rem;
    }
    
    /* Ajustes para servicios expandidos en móviles */
    .contenedor-servicios-fijo {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    /* Modificamos el comportamiento para mostrar debajo de cada tarjeta */
    .contenedor-servicio-detalle {
        position: static;
        display: none;
        margin-top: 15px;
        margin-bottom: 30px;
    }
    
    .contenedor-servicio-detalle.activo {
        display: block;
    }
    
    .contenedor-servicios-fijo {
        height: auto !important;
        overflow: visible;
    }
    
    .contenedor-servicios-fijo.activo {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    /* Ajustes extremos para móviles pequeños */
    .Logo {
        width: 40%;
    }
    
    #Logo {
        height: 90px;
    }
    
    .Titulo h1 {
        font-size: 2rem;
        padding: 10px 10px 5px;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
        padding: 0 10px 10px;
    }
    
    .nav ul {
        padding: 5px;
        gap: 8px;
    }
    
    .nav li {
        padding: 5px 10px;
        font-size: 14px;
    }
    
    /* Ajustes de contenedores */
    .container {
        padding: 10px;
    }
    
    .contact-section, .contact-section-map {
        padding: 12px;
        border-radius: 6px;
    }
    
    .contact-section-map {
        min-height: 300px;
    }
    
    .map-container {
        height: 200px;
        border-radius: 4px;
    }
    
    .nominees-image {
        height: 180px;
    }
    
    .nominees-title {
        font-size: 2rem;
        width: 100%;
        display: block;
    }
    
    .nominees-subtitle {
        font-size: 1rem;
        margin: 10px 0 20px;
        width: 100%;
        padding: 0 15px;
        line-height: 1.3;
    }
    
    /* Ajustes de servicios y detalles */
    .servicio-details-content {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
        width: 100%;
    }
    
    .details-item {
        margin-bottom: 10px;
    }
    
    .servicio-expandido-header h2 {
        font-size: 1.4rem;
    }
    
    .servicio-expandido-header p {
        font-size: 0.9rem;
    }
    
    .details-item h3 {
        font-size: 15px;
        padding: 10px 10px 5px;
    }
    
    .details-item p {
        font-size: 13px;
        padding: 0 10px 10px;
    }
    
    /* Ajuste del botón de volver arriba */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Eliminar márgenes innecesarios en móviles */
    .ServiciosMain, .nominees-style {
        padding: 15px 10px;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    /* Corrección de ancho de grid */
    .Caja-Servicios, .nominees-projects, .servicio-details-content {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 320px) {
    .Logo {
        width: 50%;
    }
    
    #Logo {
        height: 70px;
        border-width: 2px;
    }
    
    .Titulo h1 {
        font-size: 1.5rem;
        padding: 8px 8px 4px;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
        padding: 0 8px 8px;
    }
    
    .nav ul {
        padding: 4px;
        gap: 6px;
    }
    
    .nav li {
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .nominees-title {
        font-size: 1.7rem;
        letter-spacing: -1px;
    }
    
    .nominees-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .nominees-image {
        height: 180px;
    }
    
    .servicio-expandido-header h2 {
        font-size: 1.2rem;
    }
    
    .servicio-expandido-header p {
        font-size: 0.85rem;
    }
    
    .toggle-label {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .contact-section h2, .contact-section-map h2 {
        font-size: 1.2em;
    }
    
    .form-container button {
        padding: 6px;
        font-size: 13px;
    }
    
    .map-container {
        height: 180px;
    }
    
    .contact-section-map {
        min-height: 250px;
        padding: 10px;
    }
    
    .details-item h3 {
        font-size: 14px;
    }
    
    .details-item p {
        font-size: 12px;
    }
    
    /* Fix para imágenes desproporcionadas */
    .TipoServicios img {
        object-position: center;
    }
    
    /* Asegurar que los contenedores tengan ancho adecuado */
    .ServiciosMain, .nominees-style {
        border-radius: 0;
        margin: 0;
        padding: 10px 5px;
    }
}