
:root {
    --primary-color: #1a2b56; /* Azul del logo aproximado */
    --secondary-color: #ffffff;
    --text-color: #333;
    --light-bg: #f4f7f9;
    --dark-bg: #111;
    --accent-color: #0056b3;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    padding: 10px 15px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.btn-quote {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-quote:hover {
    background: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.slogan {
    margin-top: 30px;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 300;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }
.text-white { color: white; }

/* Misión Visión Grid */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.icon-blue {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Valores */
.values-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-item {
    background: white;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Servicios Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contacto */
.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    margin: 20px;
}

.contact-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-links {
    text-align: center;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #000;
    color: #888;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #bbb;
    text-decoration: none;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: 0.3s;
}

#backToTop:hover {
    background: var(--accent-color);
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .mv-grid { grid-template-columns: 1fr; }
}
