:root {
    --primary-color: #1B2845;
    --secondary-color: #808185;
    --text-color: #333333;
    --white: #ffffff;
    --gray-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background-color: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: transparent;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.info-item i {
    color: #808185;
    font-size: 18px;
    background: none;
}

.info-item span {
    color: #333333;
    font-weight: bold;
    font-size: 0.9rem;
}

.info-item a,
.info-item p {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
}

/* Main Navigation */
.main-nav {
    background-color: var(--primary-color);
    height: 70px;
    display: flex;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-logo {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gray-light);
}

.mobile-menu-btn {
    display: none;
}

.main-nav.scrolled {
    position: fixed;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled .nav-links a {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 40, 69, 0.8), rgba(27, 40, 69, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 80px; /* Para compensar el header fijo */
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.cta-button:hover {
    background: #808185;
    transform: translateY(-2px);
}

/* Secciones Generales */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Quienes Somos */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.mission, .vision {
    padding: 30px;
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission h3, .vision h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

/* Soluciones */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.solution-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
}

.contact-info h3 {
    margin-bottom: 30px;
    font-size: 24px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--secondary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    width: auto;
    display: inline-block;
}

.submit-button:hover {
    background: #2c3e67;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 65px;
}

.footer-social a {
    color: var(--white);
    margin-left: 20px;
    font-size: 24px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    border: none;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.services {
    background-color: #002146;
    color: white;
}

.services .section-title {
    color: white;
}

.services p {
    color: #e0e0e0; /* Un blanco más suave para el texto */
}

.service-card {
    background: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    color: var(--secondary-color); /* El color dorado para los títulos */
}

.service-card p {
    color: #ffffff;
}

.service-card i {
    color: var(--secondary-color); /* El color dorado para los íconos */
}

/* Estilos para el nuevo diseño del primer slide */
.first-slide .slide-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
}

.first-slide .row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 80vh;
    object-fit: contain;
}

.hero-form {
    flex: 1;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    color: var(--white);
}

.hero-form h1 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-form .experience {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-form .cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.quote-form .form-group {
    margin-bottom: 1rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 5px;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-col {
    flex: 1;
}

/* Específicamente para la fila de empresa/RUC */
.quote-form .form-row:first-child .form-col:last-child {
    flex: 0.5;
}

.phone-group {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    width: 120px;
}

.quote-button {
    width: 100%;
    padding: 1rem;
    background: #4CAF50;
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quote-button:hover {
    background: #45a049;
}

/* Mantener el diseño original para los otros slides */
.hero-content.original {
    text-align: center;
    max-width: 800px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 20px;
    width: 100%;
}