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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background-color: #ffffff;
    background: #ffffff;
    position: relative;
}

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

/* Header y Navegación */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    padding: 0.4rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(12, 28, 48, 0.2);
    height: 55px;
    min-height: 55px;
    max-height: 55px;
}

@media (max-width: 768px) {
    header {
        z-index: 1001;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a1a1a;
    min-height: 1rem;
    height: 2.5rem;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.1rem 0;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-bar {
    position: relative;
    height: 3px;
    background-color: #FED049;
    margin: 0 auto;
    opacity: 0;
    width: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    border-radius: 2px;
}

.logo-bar::before,
.logo-bar::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 10px;
    background-color: #FED049;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

/* Patas a distancia equidistante del centro (aproximadamente 30% desde el centro hacia cada lado) */
.logo-bar::before {
    left: 20%;
    transform: translateX(-50%);
}

.logo-bar::after {
    right: 20%;
    transform: translateX(50%);
}

.logo-bar.top::before {
    top: -10px;
}

.logo-bar.top::after {
    top: -10px;
}

.logo-bar.bottom::before {
    bottom: -10px;
}

.logo-bar.bottom::after {
    bottom: -10px;
}

.logo-bar.top {
    margin-bottom: -3px;
}

.logo-bar.bottom {
    margin-top: -3px;
}

.logo-bar.active {
    opacity: 1;
    width: 140px;
}

.logo-bar.active::before,
.logo-bar.active::after {
    opacity: 1;
}

.logo-bar.contracting {
    width: 110px !important;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-bar.contracting::before,
.logo-bar.contracting::after {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.logo-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s ease;
}

.logo .typing-text {
    display: inline-block;
    transition: all 0.8s ease;
    color: #1a1a1a;
}

.logo.compact .typing-text {
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: #0c1c30;
}

.logo .typing-text {
    width: 100%;
    text-align: center;
}


.logo .cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #000000;
    margin-left: 3px;
    animation: blink 1s infinite;
    vertical-align: baseline;
    margin-bottom: 2px;
    transition: opacity 0.3s ease;
}

.logo .cursor.hidden {
    opacity: 0;
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes expandBar {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #0c1c30;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* Navegación */
.main-nav {
    transition: all 0.3s ease;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: block;
}

.main-nav ul li a:hover {
    background: rgba(12, 28, 48, 0.15);
    color: #0c1c30;
}

/* Hero Section */
.hero {
    margin-top: 55px;
    padding-top: 2rem;
    min-height: calc(100vh - 55px);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    width: 100%;
    height: calc(100vh - 55px);
    min-height: calc(100vh - 55px);
    max-height: calc(100vh - 55px);
}

.hero-left {
    flex: 1.2;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem 2rem;
    position: relative;
    z-index: 2;
    height: calc(100vh - 55px - 4rem);
    min-height: calc(100vh - 55px - 4rem);
    overflow: hidden;
}

.hero-right {
    flex: 0.8;
    background: #0c1c30;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    height: calc(100vh - 55px - 4rem);
    min-height: calc(100vh - 55px - 4rem);
    max-height: calc(100vh - 55px - 4rem);
    overflow: hidden;
    padding: 2rem 0;
    flex-shrink: 0;
    border-radius: 20px;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    color: #0c1c30;
    margin: 0 auto;
    margin-top: 0;
    padding-top: 0;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    min-height: 400px;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.slide-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(150%, -50%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out;
    z-index: 0;
}

.slide-image img,
.slide-image .hero-image {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.slide-image.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.slide-image.prev {
    transform: translate(-150%, -50%);
    opacity: 0;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 55px;
        padding-top: 0;
        min-height: calc(100vh - 55px);
        position: relative;
        overflow: visible;
    }

    .hero-wrapper {
        flex-direction: column;
        min-height: calc(100vh - 55px);
        height: calc(100vh - 55px);
        position: relative;
        gap: 1.5rem;
        display: flex;
        justify-content: space-between;
        padding: 1rem 0;
    }
    
    .hero-left {
        flex: 1 1 0;
        padding: 1rem 1.5rem;
        min-height: 0;
        height: auto;
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-right {
        flex: 1 1 0;
        min-height: 40vh;
        height: auto;
        max-height: 50vh;
        display: flex;
        border-radius: 20px;
        position: relative;
        width: 100%;
        z-index: 1;
        margin: 0 auto 1rem;
        align-self: center;
    }
    
    .hero-content {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin: 0 auto 0.8rem;
        line-height: 1.2;
        padding-top: 0;
        text-align: center;
        width: 100%;
    }

    .hero p {
        font-size: 0.85rem;
        margin: 0 auto 1rem;
        line-height: 1.5;
        text-align: center;
        width: 100%;
    }

    .cta-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    .hero-image-container {
        padding: 1rem;
        min-height: 100%;
        height: 100%;
    }
    
    .image-slider {
        min-height: 100%;
        height: 100%;
    }
    
    .slide-image {
        min-height: 100%;
    }
    
    .slide-image img,
    .slide-image .hero-image {
        max-width: 75%;
        max-height: 75%;
    }
    
    .hero-image {
        max-width: 75%;
        max-height: 75%;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0c1c30;
    line-height: 1.3;
    min-height: 1.2em;
}

.hero h1 .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #0c1c30;
    margin-left: 3px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

.hero h1 .typing-cursor.hidden {
    opacity: 0;
    display: none;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #0c1c30 0%, #081420 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(12, 28, 48, 0.4);
    background: linear-gradient(135deg, #102540 0%, #0c1c30 100%);
}

/* Secciones */
section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section:not(.hero) {
    background: transparent;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #0c1c30;
    font-weight: 700;
}

/* Quiénes Somos */
.about-section {
    padding: 0.5rem 2rem 3rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    margin-top: -4rem;
}

.about-hero {
    max-width: 1200px;
    margin: 0 auto 1rem;
}

.purpose-box {
    background: linear-gradient(135deg, #0c1c30 0%, #102540 100%);
    color: #ffffff;
    padding: 1.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(12, 28, 48, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.purpose-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 208, 73, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.purpose-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #FED049;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-align: left;
}

.purpose-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
    text-justify: inter-word;
}

.purpose-text:last-child {
    margin-bottom: 0;
}

.purpose-text .highlight {
    color: #FED049;
    font-weight: 600;
    position: relative;
}

.about-main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(12, 28, 48, 0.1);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(12, 28, 48, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(12, 28, 48, 0.2);
    border-color: rgba(254, 208, 73, 0.5);
}

.main-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #FED049;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #0c1c30 0%, #102540 100%);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(12, 28, 48, 0.2);
    flex-shrink: 0;
}

.card-header h3 {
    color: #0c1c30;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
}

.services-section {
    margin: 1.5rem 0;
}

.services-title {
    font-size: 1.75rem;
    color: #0c1c30;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FED049 0%, #0c1c30 100%);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(12, 28, 48, 0.1);
    border: 2px solid rgba(12, 28, 48, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FED049 0%, #0c1c30 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(12, 28, 48, 0.2);
    border-color: rgba(254, 208, 73, 0.5);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FED049;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.service-card h4 {
    color: #0c1c30;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

.value-proposition {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #0c1c30 0%, #102540 100%);
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 15px 40px rgba(12, 28, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.value-proposition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 208, 73, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.value-proposition-content {
    position: relative;
    z-index: 1;
}

.value-proposition-title {
    font-size: 1.75rem;
    color: #FED049;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.value-proposition-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
}

.value-proposition-content p strong {
    color: #FED049;
    font-weight: 600;
}

.value-proposition-closing {
    font-size: 1.1rem !important;
    font-weight: 500;
    color: #ffffff !important;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(254, 208, 73, 0.3);
}

/* Media Queries - Tablet y Móvil */
@media (max-width: 968px) {
    .about-hero {
        margin-bottom: 3rem;
    }

    .purpose-box {
        padding: 2.5rem 2rem;
        border-radius: 15px;
    }

    .purpose-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .purpose-text {
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
        text-align: justify;
        text-justify: inter-word;
    }

    .about-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .card-header {
        flex-direction: row;
        gap: 1.2rem;
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
        flex-shrink: 0;
    }

    .card-header h3 {
        font-size: 1.5rem;
    }

    .about-card p {
        font-size: 1rem;
        text-align: justify;
        text-justify: inter-word;
    }

    .services-section {
        margin: 2rem 0;
    }

    .services-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-number {
        font-size: 2.5rem;
    }

    .service-card h4 {
        font-size: 1.25rem;
    }

    .value-proposition {
        margin-top: 2rem;
        padding: 2.5rem 2rem;
        border-radius: 15px;
    }

    .value-proposition-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .value-proposition-content p {
        font-size: 1.05rem;
        margin-bottom: 1.2rem;
        text-align: justify;
        text-justify: inter-word;
    }

    .value-proposition-closing {
        font-size: 1.1rem !important;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 1.5rem 1rem 3rem;
        margin-top: -2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-hero {
        margin-bottom: 2.5rem;
    }

    .purpose-box {
        padding: 2rem 1.5rem;
        border-radius: 12px;
        margin-top: 1.5rem;
    }

    .purpose-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .purpose-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.7;
        text-align: justify;
        text-justify: inter-word;
    }

    .about-main-content {
        margin-top: 2rem;
    }

    .about-card {
        padding: 1.8rem 1.2rem;
        margin-bottom: 1.8rem;
        border-radius: 12px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 2rem;
        margin: 0 auto;
    }

    .card-header h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .about-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: justify;
        text-justify: inter-word;
    }

    .services-section {
        margin: 1.5rem 0;
    }

    .services-title {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .services-title::after {
        width: 60px;
        height: 3px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-top: 1.5rem;
    }

    .service-card {
        padding: 1.8rem 1.2rem;
        border-radius: 12px;
    }

    .service-number {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .service-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .value-proposition {
        margin-top: 1.5rem;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .value-proposition-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }

    .value-proposition-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.7;
        text-align: justify;
        text-justify: inter-word;
    }

    .value-proposition-closing {
        font-size: 1rem !important;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 1.5rem 0.8rem 2.5rem;
        margin-top: -1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .purpose-box {
        padding: 1.8rem 1.2rem;
        border-radius: 10px;
    }

    .purpose-title {
        font-size: 1.25rem;
    }

    .purpose-text {
        font-size: 0.9rem;
        text-align: justify;
        text-justify: inter-word;
    }

    .about-card {
        padding: 1.5rem 1rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .about-card p {
        font-size: 0.9rem;
        text-align: justify;
        text-justify: inter-word;
    }

    .services-title {
        font-size: 1.3rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .service-number {
        font-size: 2rem;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .value-proposition {
        padding: 1.8rem 1.2rem;
        margin-top: 1.5rem;
    }

    .value-proposition-title {
        font-size: 1.25rem;
    }

    .value-proposition-content p {
        font-size: 0.9rem;
        text-align: justify;
        text-justify: inter-word;
    }

    .value-proposition-closing {
        font-size: 0.95rem !important;
    }
}

/* Productos */
#productos {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.products-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-carousel {
    flex: 1;
    overflow: hidden;
}

.products-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.product-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(12, 28, 48, 0.3);
    min-width: calc(50% - 1rem);
    width: calc(50% - 1rem);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(12, 28, 48, 0.2);
    border-color: rgba(12, 28, 48, 0.6);
}

.product-card h3 {
    color: #0c1c30;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.product-card p {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c1c30;
    margin-top: auto;
}

.product-info-button {
    background: #0c1c30;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: auto;
    width: 100%;
    text-align: center;
    display: block;
    pointer-events: none;
}

.product-card:hover .product-info-button {
    background: #081420;
    transform: translateY(-2px);
}

.carousel-arrow {
    background: #0c1c30;
    color: #FED049;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background: #102540;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

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

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-arrow:disabled:hover {
    transform: none;
    background: #0c1c30;
}

/* Sección de Contacto */
#contacto {
    background: linear-gradient(135deg, #0c1c30 0%, #102540 50%, #0c1c30 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(254, 208, 73, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(254, 208, 73, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

#contacto .section-title {
    color: #ffffff;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Información de Contacto */
.contact-info-grid {
    max-width: 1000px;
    margin: 2rem auto 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(254, 208, 73, 0.2);
    border: 1px solid rgba(254, 208, 73, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 208, 73, 0.1), transparent);
    transition: left 0.5s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(254, 208, 73, 0.4);
    border-color: rgba(254, 208, 73, 0.6);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.website-icon {
    background: linear-gradient(135deg, #0c1c30 0%, #102540 100%);
    color: #FED049;
}

.whatsapp-icon {
    background: #25D366;
    color: #ffffff;
}

.email-icon {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
    color: #ffffff;
}

.contact-card h3 {
    color: #0c1c30;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

.contact-card a {
    color: #0c1c30;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
    word-break: break-word;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.contact-card a:hover {
    color: #FED049;
}

.contact-card a[href^="mailto:"] {
    font-size: 0.75rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(12, 28, 48, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    opacity: 0.8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
    }

    /* Mostrar botón hamburguesa en móvil */
    .menu-toggle {
        display: flex;
    }

    /* Ocultar menú normal y crear menú desplegable */
    .main-nav {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 1000;
    }

    .main-nav.active {
        max-height: 400px;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(12, 28, 48, 0.1);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        padding: 1rem 1.5rem;
        text-align: left;
        width: 100%;
        border-radius: 0;
        color: #0c1c30;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .main-nav ul li a:hover {
        background: rgba(12, 28, 48, 0.1);
        color: #0c1c30;
        padding-left: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .values-grid,
    .products-carousel-wrapper {
        gap: 0.5rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .product-card {
        min-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        min-height: 350px;
        padding: 2rem 1.5rem;
    }

    .products-grid {
        gap: 1rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        margin: 1.5rem auto 2rem;
    }

    .contact-card {
        padding: 1.2rem 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 1.2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-card h3 {
        font-size: 1rem;
        margin: 0;
        margin-right: 0.8rem;
        flex-shrink: 0;
    }

    .contact-card a {
        font-size: 0.7rem;
        margin-left: 0;
        flex: 1;
        text-align: right;
    }

    .contact-card a[href^="mailto:"] {
        font-size: 0.65rem;
    }
}

@media (max-width: 968px) and (min-width: 769px) {
    .product-card {
        min-width: calc(50% - 1rem);
        width: calc(50% - 1rem);
    }

    #contacto {
        padding: 3rem 1rem;
    }

    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 1rem;
        margin: 1.5rem auto 2rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card a {
        font-size: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        gap: 1.2rem;
    }

    .hero-left {
        padding: 0.8rem 1rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 0.6rem;
        padding-top: 0;
    }

    .hero p {
        font-size: 0.8rem;
        margin-bottom: 0.9rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .hero-right {
        flex: 1 1 auto;
        min-height: 40vh;
        height: 40vh;
        border-radius: 20px;
        position: relative;
        width: 100%;
        margin: 0 auto;
        align-self: center;
    }

    section {
        padding: 3rem 1rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
        margin: 1.5rem auto 2rem;
    }

    .contact-card {
        padding: 1rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card h3 {
        font-size: 0.9rem;
        margin: 0;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }

    .contact-card a {
        font-size: 0.65rem;
        margin-left: 0;
        flex: 1;
        text-align: right;
    }

    .contact-card a[href^="mailto:"] {
        font-size: 0.6rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 968px) and (min-width: 769px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

