:root {
    --primary-blue: #0a1f44;
    --accent-blue: #1d4ed8;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --nav-height: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    height: var(--nav-height);
    background: var(--white);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--accent-blue); }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* --- Nueva Sección Hero (Split Screen) --- */
.hero {
    position: relative;
    min-height: 75vh; /* Altura generosa para impacto visual */
    display: flex;
    align-items: center;
    background-color: var(--primary-blue); /* Fondo azul sólido UIS */
    overflow: hidden;
    padding: 100px 0; /* Espacio para que el contenido "respire" */
}

.hero .container {
    display: grid;
    /* Equilibrio 50/50 entre texto e imagen */
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-content {
    text-align: left;
    color: var(--white);
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-content h1 strong {
    color: #60a5fa; /* Azul celeste para destacar "Ajuste de Siniestros" */
    display: block;
    margin-top: 5px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    opacity: 0.9;
}

/* --- Contenedor de la Imagen --- */
.hero-image-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 550px; /* Tamaño aumentado solicitado */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); /* Sombra elegante */
    filter: brightness(0.95) contrast(1.05); /* Mejora de visibilidad */
    transition: transform 0.4s ease;
}

/* Efecto interactivo sutil */
.hero-image-wrapper img:hover {
    transform: scale(1.03);
}

/* --- Adaptación para Móviles --- */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr; /* Colapsa a una columna */
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }

    .hero-image-wrapper {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.hero-gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.hero-gallery img:hover {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .hero-gallery {
    grid-template-columns: 1fr;
  }
}
/* --- Ajuste para Móviles --- */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
}
/* --- Footer Técnico --- */
.footer { 
    background: #0f172a; 
    color: #cbd5e1; 
    padding: 60px 0 0; 
}

.footer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 1px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
    text-transform: uppercase;
}

.footer-list { list-style: none; }

.footer-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}

.footer-list li::before {
    content: "•";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
}

.footer-divider { 
    border: 0; 
    border-top: 1px solid #1e293b; 
    margin-bottom: 40px; 
}

.grid-footer { 
    display: grid; 
    grid-template-columns: 1.5fr 1.5fr 1fr; 
    gap: 40px; 
    padding-bottom: 40px; 
}

.footer-bottom { 
    border-top: 1px solid #1e293b; 
    padding: 25px 0; 
    text-align: center; 
    font-size: 0.8rem; 
}

.social-icons a { 
    color: var(--white); 
    font-size: 1.2rem; 
    margin-right: 15px; 
    transition: 0.3s; 
}

.social-icons a:hover { color: var(--accent-blue); }

/* --- Responsive --- */
@media (max-width: 768px) {
    :root { --nav-height: 100px; }
    
    .logo-img { height: 75px; }
    
    .menu-toggle { display: block; }
    
    .hero { background-size: cover; } /* En móvil mejor llenar la pantalla */

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-menu.active { left: 0; }
    
    .nav-menu a { 
        margin: 15px 0; 
        display: block; 
    }
    
    .grid-footer, .footer-details-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .footer-col h4 { 
        border-left: none; 
        border-bottom: 2px solid var(--accent-blue); 
        padding-left: 0; 
        display: inline-block; 
        padding-bottom: 5px;
    }
}
/* --- Estilos para el Formulario de Contacto --- */
.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-blue);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.btn-submit {
    background: var(--accent-blue);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-card { padding: 20px; }
}
/* --- SECCIÓN DE SERVICIOS (CARDS) --- */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-blue);
    transition: 0.3s;
}

.service-card:hover { transform: translateY(-10px); }

.service-icon { font-size: 3rem; color: var(--accent-blue); margin-bottom: 20px; }
/* --- ESTILOS ESPECÍFICOS PARA PÁGINA CLIENTES --- */
.clientes-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.client-group {
    margin-bottom: 70px;
}

.category-title {
    font-size: 1.2rem;
    color: var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
}

/* --- ESTILOS ACTUALIZADOS PARA PÁGINA CLIENTES --- */
.logo-item {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Sombra suave inicial */
    display: flex;
    flex-direction: column; /* Para alinear imagen y texto verticalmente */
    justify-content: center;
    align-items: center;
    height: 140px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transición fluida */
    text-align: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(0%); /* A color desde el inicio */
    opacity: 1;            /* Opacidad completa */
    transition: transform 0.3s ease;
}

.logo-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 10px;
}

/* --- EL EFECTO BONITO AL PASAR EL MOUSE --- */
.logo-item:hover {
    transform: translateY(-8px); /* Se eleva */
    box-shadow: 0 15px 30px rgba(29, 78, 216, 0.15); /* Sombra de color UIS */
    border: 1px solid rgba(29, 78, 216, 0.2);
}

.logo-item:hover img, 
.logo-item:hover span {
    transform: scale(1.1); /* Crece un poquito de forma elegante */
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- ESTILOS ADICIONALES PARA PÁGINA EQUIPO (ORGANIZACIÓN DE MCLARENS) --- */
.team-page-header {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.team-grid-section {
    padding-bottom: 80px;
    background-color: var(--bg-light);
}

.partners-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas en desktop */
    gap: 30px;
}

.partner-card-v {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Apila foto y texto verticalmente */
    height: 100%; /* Igual altura de tarjetas */
}

.partner-photo-v img {
    width: 100%;
    height: auto;
    display: block;
}

.partner-footer-info {
    padding: 25px;
    background: var(--white);
    flex-grow: 1; /* El texto ocupa todo el espacio restante */
    border-top: 4px solid var(--accent-blue); /* Límite azul estilo UIS */
}

.partner-footer-info h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.partner-title-v {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.partner-bio-v {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Responsive para Móvil --- */
@media (max-width: 992px) {
    .partners-row-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

@media (max-width: 768px) {
    .partners-row-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}