/* Variables de colores basadas en el logo corporativo */
:root {
    --primary-color: #2b4c5e; /* Azul/Gris oscuro del logo */
    --secondary-color: #f28522; /* Naranja brillante del logo */
    --primary-dark: #1f3744;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

/* Tipografía y Títulos */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section {
    padding: 90px 0;
}

/* Header & Navegación */
.header {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 10px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(242, 133, 34, 0.3);
}

.btn-primary:hover {
    background-color: #d9741b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 133, 34, 0.4);
}

/* Hero Section y Carrusel */
.hero {
    position: relative;
    padding: 170px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

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

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

.carousel .slide.active {
    opacity: 1;
}

.carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(31, 55, 68, 0.45), rgba(43, 76, 94, 0.65));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 750px;
    margin: 0 auto;
    opacity: 1;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Grillas */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Quiénes Somos */
.about-text p {
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    grid-column: 1 / -1; /* Hace que ocupe todo el ancho disponible */
    margin-top: 20px;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-left: 6px solid var(--secondary-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

/* Servicios */
.service-card {
    background: var(--white);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    border-color: rgba(242, 133, 34, 0.3);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Compromisos */
.commitments-list {
    list-style: none;
    max-width: 850px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.commitments-list li {
    background: var(--bg-light);
    padding: 22px 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
    border: 1px solid transparent;
}

.commitments-list li:hover {
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateX(10px);
    border-color: rgba(242, 133, 34, 0.2);
}

.check {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 20px;
}

/* Contacto */
.contact {
    padding: 110px 0;
}

.contact h2 {
    color: var(--white);
}

.contact h2::after {
    background-color: var(--secondary-color);
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 25px;
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

.contact-info strong {
    font-weight: 600;
    color: var(--white);
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 50px auto 0;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(242, 133, 34, 0.2);
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 10px;
    padding: 14px 20px;
}

/* Footer */
.footer {
    background-color: #14242d;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 25px 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .grid-2 { 
        grid-template-columns: 1fr; 
        gap: 50px; 
    }
    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav { display: none; } /* En móvil se podría implementar un menú hamburguesa */
    .hero { padding: 100px 0; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 60px 0; }
    .commitments-list li { 
        padding: 15px 20px; 
        font-size: 1rem; 
    }
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
