/* Variables CSS */
:root {
    --primary-color: #0b4080;
    --secondary-color: #ffcc1e;
    --background-color: #f8fafa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(11, 64, 128, 0.1);
    --shadow-hover: 0 5px 30px rgba(11, 64, 128, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #094070;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e6b71a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img,
.nav-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nuevo logo del Ministerio de Trabajo */
.min-trabajo-logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.min-trabajo-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.slide-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.slide-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 64, 128, 0.4) 0%, rgba(13, 74, 143, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    padding-top: 80px;
    padding-left: 80px;
    padding-right: 80px;
    animation: slideInContent 0.8s ease-out 0.3s both;
}

@media (max-width: 1200px) {
    .slide-content {
        max-width: 90%;
        padding-top: 70px;
        padding-left: 70px;
        padding-right: 70px;
    }
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.carousel-modal-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.carousel-modal-btn:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 30, 0.4);
}

/* Controles del Carrusel */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    transform: translateY(-50%);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Información del Slide */
.carousel-info {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.slide-counter {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.current-slide {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Animaciones */
@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.nosotros {
    background: var(--white);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-card {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vm-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.vm-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.vm-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #0d4a8f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.vm-icon i {
    color: var(--white);
    font-size: 1.25rem;
}

.vm-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Servicios */
.servicios {
    background: white;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Certificados */
.certificados {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.certificados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.certificados .section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.certificados .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.certificados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.certificado-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 64, 128, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(11, 64, 128, 0.05);
    position: relative;
    overflow: hidden;
}

.certificado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #ffd700);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.certificado-card:hover::before {
    transform: translateX(0);
}

.certificado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 64, 128, 0.15);
}

.certificado-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.certificado-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.certificado-card:hover .certificado-icon::after {
    transform: translateX(100%);
}

.certificado-icon i {
    font-size: 2rem;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.certificado-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.certificado-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.certificado-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.certificado-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 64, 128, 0.3);
}

.certificado-download i {
    font-size: 1rem;
}

/* Nuestros Clientes - Nuevo Diseño */
.clientes {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6f0fa 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo de curvatura superior */
.elementor-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.elementor-shape-top {
    top: 0;
}

.elementor-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.elementor-shape-fill {
    fill: var(--white);
}

/* Efecto ola en el borde superior - DESHABILITADO (usando SVG ahora) */
/*
.clientes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(100% 40px at 50% 0%);
    transform: translateY(-20px);
}
*/

.clientes .section-title {
    text-align: center;
    color: var(--text-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Layout principal con testimonios a la izquierda y logo a la derecha */
.clientes-testimonios-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Testimonios con fotos en columnas */
.testimonios-con-fotos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
    position: relative;
}

@media (max-width: 1200px) {
    .clientes-testimonios-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .clientes-testimonios-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonios-con-fotos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonios-con-fotos {
        grid-template-columns: 1fr;
    }
}

.testimonio-con-foto {
    display: flex;
    gap: 1.2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    align-items: flex-start;
}

.testimonio-con-foto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonio-foto {
    flex-shrink: 0;
}

.testimonio-foto img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.testimonio-info {
    flex: 1;
}

.estrellas {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.6rem;
}

.estrellas i {
    color: #ffc107;
    font-size: 0.85rem;
}

.testimonio-info h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.testimonio-texto {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.cargo {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.empresa {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Logo grande de SSOMA con animación scroll */
.ssoma-logo-grande {
    position: sticky;
    top: 100px;
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(11, 64, 128, 0.1);
    border: 2px solid rgba(11, 64, 128, 0.05);
    z-index: 2;
}

.ssoma-logo-grande img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ssoma-logo-grande:hover img {
    transform: scale(1.05);
}

/* Sección de logos de clientes */
.clientes-logos-section {
    border-top: 2px solid #e5e5e5;
    padding-top: 3rem;
}

.clientes-grid,
.clientes-grid-adicional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    margin-bottom: 2rem;
}

.cliente-logo {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100%;
    max-width: 160px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cliente-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.cliente-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.cliente-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Contacto */
.contacto {
    background: var(--primary-color);
    color: var(--white);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacto-content-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    padding: 3rem 0;
}

.contacto-info-center {
    text-align: center;
    max-width: 600px;
}

.contacto-info-center .section-title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contacto-info-center .section-title::after {
    margin: 0.8rem auto;
}

.contacto-info-center p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details-center {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-details-center .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    min-width: 220px;
}

.contact-details-center .contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contacto-info .section-title {
    color: var(--white);
    text-align: left;
}

.contacto-info .section-title::after {
    margin: 1rem 0;
}

.contacto-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contacto .contact-item i {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contacto-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 64, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: var(--white);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-logo .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Estilos para la columna de contacto */
.footer-column .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column .contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-column .contact-info .contact-item i {
    color: var(--secondary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a i {
    color: white;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links a:hover i {
    color: var(--text-dark);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .nosotros-grid,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-details-center {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .contact-details-center .contact-item {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        justify-content: center;
        text-align: center;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Media query específica para móviles pequeños */
@media (max-width: 480px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        width: 100%;
    }
    
    .nav-link:hover {
        background: var(--background-color);
        padding-left: 10px;
        border-left: 3px solid var(--secondary-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .min-trabajo-logo {
        display: none;
    }
    
    .company-name {
        font-size: 1.4rem;
    }
    
    .hero-carousel {
        height: 80vh;
        min-height: 600px;
    }
    
    .slide-background {
        background-attachment: scroll;
    }
    
    .slide-content {
        padding-top: 80px;
        max-width: 90%;
        text-align: left;
        padding-left: 70px;
        padding-right: 70px;
    }
    
    .slide-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }
    
    .slide-description {
        font-size: 1.2rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .slide-buttons {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .slide-buttons .btn {
        min-width: 180px;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 0 1.5rem;
    }
    
    .carousel-btn {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .carousel-info {
        top: 1.5rem;
        right: 1.5rem;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    /* Nuevo diseño de clientes responsive */
    .clientes-testimonios-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ssoma-logo-grande {
        position: relative;
        top: auto;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .ssoma-logo-grande img {
        max-width: 200px;
    }
    
    .testimonio-con-foto {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .testimonio-foto img {
        width: 70px;
        height: 70px;
    }
    
    .clientes-grid,
    .clientes-grid-adicional {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .cliente-logo {
        height: 80px;
        max-width: 140px;
        padding: 1rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonio-card {
        padding: 1.5rem;
    }
    
    .testimonios-title {
        font-size: 1.75rem;
    }
    
    .certificados-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certificado-card {
        padding: 2rem 1.5rem;
    }
    
    .certificados .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content {
        padding-left: 70px;
        padding-right: 70px;
    }
    
    .slide-title {
        font-size: 2.6rem;
    }
    
    .slide-description {
        font-size: 1.15rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .slide-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .slide-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-carousel {
        height: 70vh;
        min-height: 520px;
    }
    
    .slide-content {
        padding-top: 40px;
        padding-left: 50px;
        padding-right: 50px;
        max-width: 100%;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .slide-buttons .btn {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 16px 20px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .carousel-controls {
        padding: 0 1rem;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        border-width: 3px;
    }
    
    .carousel-info {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 15px;
    }
    
    .logo-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .min-trabajo-logo {
        height: 30px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .about-card,
    .vm-card,
    .service-content,
    .cliente-logo,
    .contacto-form {
        padding: 0.8rem;
    }
    
    .service-card {
        padding: 0.8rem;
    }
    
    .cliente-logo {
        height: 70px;
        max-width: 130px;
        padding: 0.8rem;
    }
    
    .cliente-logo img {
        max-height: 50px;
    }
    
    .clientes-grid,
    .clientes-grid-adicional {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .testimonio-con-foto {
        padding: 1.2rem;
    }
    
    .testimonio-foto img {
        width: 60px;
        height: 60px;
    }
    
    .testimonio-texto {
        font-size: 0.9rem;
    }
    
    .ssoma-logo-grande img {
        max-width: 150px;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonio-card {
        padding: 0.8rem;
    }
    
    .testimonio-quote p {
        font-size: 0.9rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .testimonios-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .testimonio-quote p {
        font-size: 1rem;
    }
    
    .certificados-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .certificado-card {
        padding: 1.8rem 1.2rem;
    }
    
    .certificados .section-title {
        font-size: 1.8rem;
    }
    
    .certificado-icon {
        width: 70px;
        height: 70px;
    }
    
    .certificado-icon i {
        font-size: 1.8rem;
    }
    
    .certificado-content h3 {
        font-size: 1.2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-logo img {
        width: 45px;
        height: 45px;
        padding: 6px;
    }
    
    .footer-logo .company-name {
        font-size: 1.4rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.cliente-logo,
.about-card,
.vm-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll smoothing for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .btn,
    .contacto-form,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 2rem 0;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 64, 128, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    background: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #0d4a8f);
    color: var(--white);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 204, 30, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--secondary-color);
}

.modal-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    margin-bottom: 2rem;
}

.modal-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.modal-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-details li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-color);
}

.modal-details li:last-child {
    border-bottom: none;
}

.modal-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.modal-footer {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e0e0e0;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-footer {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e0e0e0;
}

.modal-cta {
    text-align: center;
}

.modal-cta p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-contact {
    text-decoration: none;
}

.modal-close-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.modal-close-btn:hover {
    background: var(--text-light);
    color: var(--white);
}

/* Animaciones del modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-icon i {
        font-size: 1.5rem;
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        width: 98%;
    }
    
    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
}

/* Ajustes adicionales para móviles muy pequeños */
@media (max-width: 400px) {
    .slide-title {
        font-size: 1.6rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
    }
    
    .slide-content {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .contact-details-center .contact-item {
        padding: 1.2rem;
        max-width: 300px;
    }
    
    .service-content {
        padding: 1.2rem;
    }
}

/* Media query para zoom alto y pantallas pequeñas como 720p */
@media (max-width: 1366px) and (max-height: 768px) {
    /* Reducir tamaños de fuente para zoom alto */
    html {
        font-size: 14px; /* Reduce el tamaño base de rem */
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    /* Hero Section */
    .hero-carousel {
        height: 70vh;
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }
    
    .slide-content {
        padding-top: 30px;
        max-width: 500px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Header */
    .header .container {
        padding: 0.4rem 16px;
    }
    
    .logo-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .min-trabajo-logo {
        height: 35px;
    }
    
    /* Secciones */
    section {
        padding: 3.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .service-card,
    .certificado-card,
    .testimonio-card {
        padding: 1rem;
    }
    
    .about-card,
    .vm-card {
        padding: 1.2rem;
    }
    
    .cliente-logo {
        height: 100px;
        max-width: 160px;
        padding: 1.2rem;
    }
    
    .cliente-logo img {
        max-height: 70px;
    }
    
    /* Testimonios */
    .testimonios-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .testimonio-quote p {
        font-size: 0.95rem;
    }
    
    /* Certificados */
    .certificados .section-title {
        font-size: 1.8rem;
    }
    
    .certificado-icon {
        width: 65px;
        height: 65px;
    }
    
    .certificado-icon i {
        font-size: 1.6rem;
    }
    
    .certificado-content h3 {
        font-size: 1.1rem;
    }
    
    .certificado-download {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }
    
    /* Contacto */
    .contacto-info h3 {
        font-size: 1.4rem;
    }
    
    .contacto-item {
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer h4 {
        font-size: 1.1rem;
    }
    
    .footer a,
    .footer p {
        font-size: 0.9rem;
    }
    
    /* Controles del carrusel */
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .carousel-info {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Media query específica para resoluciones 720p */
@media (max-width: 1280px) and (max-height: 720px) {
    html {
        font-size: 12px;
    }
    
    .hero-carousel {
        height: 60vh;
        min-height: 380px;
    }
    
    .slide-title {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .slide-description {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    
    .service-card,
    .certificado-card,
    .testimonio-card {
        padding: 0.8rem;
    }
    
    .about-card,
    .vm-card {
        padding: 1rem;
    }
    
    .cliente-logo {
        height: 75px;
        max-width: 140px;
        padding: 0.8rem;
    }
    
    .cliente-logo img {
        max-height: 55px;
    }
    
    .testimonio-quote p {
        font-size: 0.85rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    /* Controles del carrusel más pequeños */
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .carousel-info {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* Media query específica para zoom 175% en pantallas 1920x1080 */
@media (max-width: 1100px) and (min-width: 800px) {
    html {
        font-size: 13px;
    }
    
    /* Header compacto */
    .header .container {
        padding: 0.3rem 16px;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .min-trabajo-logo {
        height: 30px;
    }
    
    /* Hero más compacto */
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .slide-content {
        padding-top: 25px;
        max-width: 450px;
    }
    
    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }
    
    /* Secciones más compactas */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards más pequeñas */
    .service-card,
    .certificado-card,
    .testimonio-card,
    .about-card,
    .vm-card {
        padding: 0.8rem;
    }
    
    .cliente-logo {
        height: 85px;
        max-width: 150px;
        padding: 1rem;
    }
    
    .cliente-logo img {
        max-height: 65px;
    }
    
    /* Controles del carrusel */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        border-width: 2px;
    }
    
    .carousel-info {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        top: 0.7rem;
        right: 0.7rem;
        border-radius: 8px;
    }
    
    /* Iconos más pequeños */
    .certificado-icon {
        width: 55px;
        height: 55px;
    }
    
    .certificado-icon i {
        font-size: 1.4rem;
    }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 400px) {
    .about-card,
    .vm-card,
    .service-card,
    .testimonio-card,
    .certificado-card {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .cliente-logo {
        height: 60px;
        max-width: 100px;
        padding: 0.5rem;
    }
    
    .cliente-logo img {
        max-height: 40px;
    }
    
    .clientes-grid,
    .clientes-grid-adicional {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .testimonio-con-foto {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .testimonio-foto img {
        width: 50px;
        height: 50px;
    }
    
    .testimonio-texto {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .ssoma-logo-grande {
        padding: 1rem;
    }
    
    .ssoma-logo-grande img {
        max-width: 120px;
    }
    
    .testimonio-quote p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .about-card h3,
    .vm-card h3,
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
}

/* ===============================================
   ESTILOS PARA LA PÁGINA DE CERTIFICADOS
   =============================================== */

/* Página principal de certificados */
.certificados-solicitud {
    min-height: calc(100vh - 80px);
    padding: 120px 0 60px;
    background: var(--background-color);
}

.certificados-content {
    max-width: 800px;
    margin: 0 auto;
}

.certificados-header {
    text-align: center;
    margin-bottom: 3rem;
}

.certificados-header .section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certificados-header .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Formulario de certificados */
.certificados-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.certificados-form-container:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.certificados-form .form-group {
    margin-bottom: 2rem;
}

.certificados-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.certificados-form .form-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.certificados-form .form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: #fafbfc;
}

.certificados-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(11, 64, 128, 0.1);
}

.certificados-form .form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.certificados-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), #0d4a8f);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.certificados-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #0d4a8f, var(--primary-color));
}

.certificados-btn:active {
    transform: translateY(0);
}

.certificados-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.certificados-btn:disabled:hover {
    background: #94a3b8;
    transform: none;
    box-shadow: var(--shadow);
}

/* Resultados */
.certificados-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.certificados-result.success {
    background: #f0f9ff;
    border-color: #22c55e;
    color: #065f46;
}

.certificados-result.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.certificados-result.loading {
    background: #fefce8;
    border-color: #eab308;
    color: #92400e;
}

.certificados-result.info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.result-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-message i {
    font-size: 1.1rem;
}

/* Previsualización del certificado */
.certificados-preview {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.preview-title i {
    color: var(--secondary-color);
}

.preview-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pdf-preview-container {
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f8f9fa;
}

.pdf-viewer {
    position: relative;
    height: 600px;
}

.pdf-embed {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    display: none;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
}

.fallback-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fallback-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.fallback-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Responsive para certificados */
@media (max-width: 768px) {
    .certificados-solicitud {
        padding: 100px 0 40px;
    }
    
    .certificados-form-container,
    .certificados-preview {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .certificados-header .section-title {
        font-size: 1.8rem;
    }
    
    .pdf-viewer {
        height: 400px;
    }
    
    .certificados-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .certificados-form-container,
    .certificados-preview {
        padding: 1rem;
    }
    
    .preview-title {
        font-size: 1.3rem;
    }
    
    .pdf-viewer {
        height: 300px;
    }
}

/* Estilos para el enlace activo en navegación */
.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

/* Ajustes específicos para la página de certificados */
.certificados-solicitud .nav-logo {
    max-height: 50px;
    width: auto;
}

.certificados-solicitud .nav-brand {
    max-width: 200px;
}

.certificados-solicitud .header {
    padding: 0.5rem 0;
}

.certificados-solicitud .nav {
    padding: 0.5rem 0;
}

/* Asegurar que el logo no sea demasiado grande en general */
.nav-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .certificados-solicitud .nav-logo {
        max-height: 40px;
    }
    
    .certificados-solicitud .nav-brand {
        max-width: 150px;
    }
}
