:root {
    --primary-red: #c41230;
    --primary-blue: #003876;
    --primary-black: #000000;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 80px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    animation: fadeInDown 0.5s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    transition: color 0.3s;
}

.social-links a:nth-child(1) { animation-delay: 0.2s; }
.social-links a:nth-child(2) { animation-delay: 0.4s; }
.social-links a:nth-child(3) { animation-delay: 0.6s; }
.social-links a:nth-child(4) { animation-delay: 0.8s; }
.social-links a:nth-child(5) { animation-delay: 1s; }

.social-links a:hover {
    color: var(--primary-red);
}

/* Header */
.header {
    padding: 15px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--white) 60%, rgba(227, 24, 55, 0.02) 60%, rgba(227, 24, 55, 0.02) 80%, rgba(0, 56, 118, 0.02) 80%, rgba(0, 56, 118, 0.02) 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.logo-serte, .logo-copy {
    color: var(--primary-red);
}

.logo-sas {
    color: var(--primary-blue);
    font-size: 24px;
    margin-left: 2px;
}

.logo-slogan {
    font-size: 14px;
    color: var(--gray-medium);
    font-style: italic;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: flex-end;
    margin-left: 100px;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

@media (max-width: 1200px) {
    .nav-menu {
        margin-left: 40px;
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        margin-left: 30px;
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        margin-left: 20px;
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-title {
        font-size: 22px;
    }
    
    .logo-sas {
        font-size: 18px;
    }
    
    .logo-slogan {
        font-size: 12px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 56, 118, 0.92), rgba(227, 24, 55, 0.85)), 
                url('Assets/img/Hero.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    animation: fadeIn 1s ease-out;
    margin-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 1.2s;
}

.hero-stats {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gray-light);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--white);
}

/* Stats en Hero */
.hero .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero .stat-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.hero .stat-item:hover::before {
    left: 100%;
}

.hero .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero .stat-number {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero .stat-number .plus {
    color: var(--white);
    font-size: 32px;
    font-weight: 500;
    margin-left: -5px;
}

.hero .stat-number i {
    color: var(--primary-red);
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero .stat-text {
    color: var(--gray-light);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero .stats-grid {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 1.8s;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Servicios Section */
.servicios {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.services-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    background: var(--white);
    position: relative;
}

.service-title {
    color: var(--primary-blue);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description {
    color: var(--gray-medium);
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--primary-red);
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        max-width: 100%;
        margin: 0 auto;
        opacity: 1 !important;
        transform: none !important;
        background: var(--white);
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 20px;
    }

    .service-title {
        font-size: 1.3em;
    }

    .service-description {
        font-size: 0.9em;
    }
}

/* Sección Nosotros */
.nosotros {
    padding: 100px 0;
    background-color: var(--white);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nosotros-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nosotros-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue) 0%, transparent 100%);
    opacity: 0.3;
}

.nosotros-text {
    padding-right: 30px;
}

.nosotros-subtitle {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nosotros-title {
    color: var(--primary-blue);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.nosotros-description {
    color: var(--gray-medium);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    color: var(--primary-red);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-number i {
    color: var(--primary-blue);
    font-size: 24px;
}

.stat-text {
    color: var(--gray-dark);
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nosotros-content {
        grid-template-columns: 1fr;
    }
    
    .nosotros-text {
        padding-right: 0;
        order: -1;
    }
    
    .stats-grid {
        gap: 20px;
    }
} 

.mission-vision {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mission-box, .vision-box {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-5px);
}

.mission-box::before, .vision-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.mission-box::before {
    background: var(--primary-red);
}

.vision-box::before {
    background: var(--primary-blue);
}

.mv-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mv-title i {
    font-size: 24px;
    color: var(--primary-blue);
}

.mv-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.mv-content {
    color: var(--gray-medium);
    font-size: 16px;
    line-height: 1.8;
}

.mv-content strong {
    color: var(--primary-red);
    font-weight: 600;
}

@media (max-width: 768px) {
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .mission-box, .vision-box {
        padding: 30px;
    }
} 

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-blue);
    font-size: 36px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-red);
} 

/* Sección Marcas Aliadas */
.marcas-aliadas {
    padding: 60px 0;
    background-color: var(--white);
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.marcas-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.marca-item {
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100px;
    position: relative;
    overflow: hidden;
}

.marca-item::before, .empresa-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-red), var(--primary-blue));
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.marca-item::after, .empresa-item::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), var(--primary-red));
    right: -100%;
    top: 0;
    transition: 0.5s;
    transition-delay: 0.25s;
}

.marca-item > span::before, .empresa-item > span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(to left, var(--primary-blue), var(--primary-red));
    bottom: 0;
    right: -100%;
    transition: 0.5s;
    transition-delay: 0.5s;
}

.marca-item > span::after, .empresa-item > span::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to top, var(--primary-red), var(--primary-blue));
    left: -100%;
    bottom: 0;
    transition: 0.5s;
    transition-delay: 0.75s;
}

.marca-item:hover::before, .empresa-item:hover::before {
    left: 0;
}

.marca-item:hover::after, .empresa-item:hover::after {
    right: 0;
}

.marca-item:hover > span::before, .empresa-item:hover > span::before {
    right: 0;
}

.marca-item:hover > span::after, .empresa-item:hover > span::after {
    left: 0;
}

.marca-item img, .empresa-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.marca-item:hover img, .empresa-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .empresas-grid {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .marcas-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
    
    .empresas-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .marcas-grid, .empresas-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .marca-item, .empresa-item {
        height: 80px;
        padding: 15px;
    }
    
    .marca-item img, .empresa-item img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .marca-item, .empresa-item {
        height: 70px;
        padding: 10px;
    }
    
    .marca-item img, .empresa-item img {
        max-height: 50px;
    }
} 

/* Sección Empresas Clientes */
.empresas-clientes {
    padding: 80px 0;
    background-color: var(--gray-light);
    position: relative;
}

.empresas-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 25px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.empresas-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.empresa-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    position: relative;
    overflow: hidden;
}

.empresa-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.empresa-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .empresas-grid {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .empresas-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .empresas-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .empresa-item {
        height: 80px;
        padding: 15px;
    }
    
    .empresa-item img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .empresa-item {
        height: 70px;
        padding: 10px;
    }
    
    .empresa-item img {
        max-height: 50px;
    }
} 

/* Sección Contacto */
.contacto {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contacto-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contacto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contacto-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contacto-item:hover .contacto-icon {
    color: var(--primary-red);
    transform: scale(1.1);
}

.contacto-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contacto-info {
    color: var(--gray-medium);
    font-size: 1rem;
    line-height: 1.6;
}

.contacto-info a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-info a:hover {
    color: var(--primary-red);
}

@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-item {
        padding: 30px 20px;
    }
} 

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contacto-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--gray-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 56, 118, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        min-height: 300px;
    }
}

/* Actualización de los estilos de la grid de información de contacto */
.contacto-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .contacto-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-form {
        padding: 30px;
    }
} 

html {
    scroll-behavior: smooth;
}

.nav-menu a.active {
    color: var(--primary-red);
}

/* Ajuste del padding-top para compensar el header fijo */
section {
    scroll-margin-top: 80px; /* Altura del header + padding extra */
}

/* Header fijo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeInDown 0.5s ease-out;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Ajuste del margen superior del hero para compensar el header fijo */
.hero {
    margin-top: 80px;
} 

/* Blog Styles */
.blog-header {
    background-size: cover !important;
    background-position: center !important;
    padding: 100px 0 50px;
    margin-top: 80px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.blog-header .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.blog-header .section-title::after {
    background: var(--white);
}

.blog-subtitle {
    font-size: 18px;
    color: var(--gray-light);
    margin-top: -20px;
}

.blog-grid {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.blog-grid .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.blog-posts {
    display: grid;
    gap: 30px;
}

.blog-post {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-medium);
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta i {
    margin-right: 5px;
}

.post-title {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--gray-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--primary-blue);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: var(--gray-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-red);
}

.category-list span {
    color: var(--gray-medium);
    font-size: 14px;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 20px;
}

.recent-posts li:last-child {
    margin-bottom: 0;
}

.recent-posts a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.recent-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.post-info h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.post-info span {
    color: var(--gray-medium);
    font-size: 14px;
}

.recent-posts a:hover h4 {
    color: var(--primary-red);
}

@media (max-width: 992px) {
    .blog-grid .container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 80px 0 40px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-image {
        height: 200px;
    }
} 

/* Single Post Styles */
.single-post {
    padding: 120px 0 80px;
    background-color: var(--white);
}

.single-post .container {
    max-width: 900px;
}

.single-post .post-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post .post-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.single-post .post-title {
    font-size: 42px;
    color: var(--primary-blue);
    line-height: 1.2;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post .post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.single-post .post-content h2 {
    color: var(--primary-blue);
    font-size: 28px;
    margin: 40px 0 20px;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.single-post .post-content li {
    margin-bottom: 10px;
}

.post-cta {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: center;
}

.post-cta h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.post-cta p {
    margin-bottom: 20px;
}

.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.back-to-blog {
    color: var(--primary-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog i {
    margin-right: 8px;
}

.back-to-blog:hover {
    color: var(--primary-red);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .single-post {
        padding: 100px 0 60px;
    }
    
    .single-post .post-title {
        font-size: 32px;
    }
    
    .single-post .post-content {
        font-size: 16px;
    }
    
    .single-post .post-content h2 {
        font-size: 24px;
    }
    
    .post-cta {
        padding: 30px 20px;
    }
} 

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(0, 56, 118, 0.95) 100%);
    padding: 12px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-blue) 100%);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer .social-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer .social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer .social-links a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
    opacity: 1;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }

    .footer .social-links {
        gap: 25px;
    }
    
    .footer .social-links a {
        font-size: 18px;
    }
    
    body {
        margin-bottom: 60px;
    }
} 

/* Casos de Éxito */
.casos-exito {
    padding: 60px 0;
    background: #fff;
}

.casos-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.casos-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.caso-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.caso-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.caso-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.caso-content img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.caso-content h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.caso-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.caso-content ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--gray-dark);
}

.caso-content ul li:before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-red);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: var(--primary-blue);
}

@media (max-width: 992px) {
    .caso-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .caso-slide {
        flex: 0 0 100%;
    }
    
    .casos-carousel {
        padding: 0 30px;
    }
    
    .caso-content {
        padding: 20px;
    }
    
    .caso-content img {
        max-width: 120px;
    }
    
    .caso-content h3 {
        font-size: 1.3rem;
    }
} 

/* Testimonios Section */
.testimonios {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.testimonios-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.testimonios-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonio-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.testimonio-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.testimonio-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonio-content .fa-quote-left {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    opacity: 0.8;
}

.testimonio-texto {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.testimonio-autor {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.testimonio-autor h4 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin: 0 0 3px 0;
    font-weight: 600;
}

.testimonio-autor p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.testimonios .prev-btn,
.testimonios .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.8;
}

.testimonios .prev-btn:hover,
.testimonios .next-btn:hover {
    background: var(--primary-red);
    opacity: 1;
}

.testimonios .prev-btn {
    left: 0;
}

.testimonios .next-btn {
    right: 0;
}

.testimonios .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.testimonios .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonios .indicator.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .testimonio-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .testimonio-slide {
        flex: 0 0 100%;
    }
    
    .testimonios-carousel {
        padding: 0 30px;
    }
    
    .testimonio-card {
        padding: 20px;
    }
} 

/* Estilos para mensajes del formulario */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para campos inválidos */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
} 

/* Estilos especiales para el botón de contacto en el nav */
.nav-menu .contact-btn {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-menu .contact-btn:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-menu .contact-btn::after {
    display: none;
}

/* Ajuste del padding para el último elemento del menú */
.nav-menu li:last-child {
    margin-left: 8px;
} 

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transition: 0.3s ease-in-out;
        margin: 0;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 15px;
        padding: 8px 0;
    }

    .nav-menu .contact-btn {
        margin-top: 10px;
        padding: 8px 20px;
    }

    /* Animación del menú hamburguesa */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
} 