/* styles.css */
/* Variables de diseño */
:root {
    --primary: #0A2A5E;
    --accent: #cc1c1cb9;
    --light: #F8F9FA;
    --dark: #1E2A44;
    --text: #333333;
    --transition-standard: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text { color: var(--primary); }
.logo-accent { color: var(--accent); }

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* --- HERO MODIFICADO (Info al centro e imágenes coherentes) --- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado horizontal */
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10,42,94,0.7), rgba(10,42,94,0.8));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    color: white;
    text-align: center; /* Info en medio */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* El texto corto del hero sí se ve bien centrado */
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition-standard);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,196,180,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition-standard);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 30px; }
.next { right: 30px; }

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Secciones generales */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--light);
}

.section-title {
    text-align: center; /* Títulos centrados */
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- TEXTOS LARGOS NO CENTRADOS (Formales) --- */
p, .about-content p, .service-card p, .mission-card p, .why-card p, .news-card p {
    text-align: justify;
    line-height: 1.8;
}

/* --- ANIMACIONES EN TODAS LAS CARDS --- */
.service-card, .mission-card, .why-card, .news-card, .process-step, .contact-info {
    transition: var(--transition-standard);
    background: white;
}

/* Efecto Zoom/Elevación general */
.service-card:hover, .mission-card:hover, .why-card:hover, .news-card:hover, .process-step:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    transition: transform 0.5s ease;
}
.about-image:hover img {
    transform: scale(1.03);
}

/* Misión y Visión */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.mission-card {
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.icon-circle {
    width: 90px;
    height: 90px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.4s ease;
}
.mission-card:hover .icon-circle {
    transform: rotateY(360deg);
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 1.5rem 1.8rem 0.8rem;
    font-size: 1.35rem;
    color: var(--primary);
}

.service-card p {
    padding: 0 1.8rem 1.8rem;
}

/* Por qué elegirnos */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Metodología */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.process-step {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    transition: background 0.3s;
}
.process-step:hover .step-number {
    background: var(--primary);
}

/* Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.news-card h3 {
    padding: 1.5rem 1.5rem 0.8rem;
}

.btn-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0 1.5rem 1.5rem;
    transition: gap 0.3s;
}
.news-card:hover .btn-news {
    gap: 15px;
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
    transition: transform 0.3s;
}
.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--accent);
}

.contact-map iframe {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer h4 {
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.footer ul {
    list-style: none;
}

.footer ul a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul a:hover {
    color: var(--accent);
}

.social a {
    color: white;
    font-size: 1.6rem;
    margin-right: 1rem;
    transition: var(--transition-standard);
    display: inline-block;
}

.social a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .mission-vision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: 0.4s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .nav-menu.active { left: 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
}


/* Cambio de color suave en TODAS las cards al hover */
.service-card,
.mission-card,
.news-card,
.why-card,
.process-step {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.service-card:hover,
.mission-card:hover,
.news-card:hover,
.why-card:hover,
.process-step:hover {
    background-color: #f0f9ff;          /* Azul muy claro - puedes cambiarlo */
    box-shadow: 0 15px 40px rgba(0, 196, 180, 0.18);  /* Sombra con color accent */
    transform: translateY(-6px);        /* Elevación ligera (opcional pero queda bien) */
}

/* Cambio de color en los títulos dentro de las cards (más visible) */
.service-card:hover h3,
.news-card:hover h3,
.mission-card:hover h3,
.why-card:hover h3,
.process-step:hover h4 {
    color: #fa0101;                     /* Tu color --accent */
    transition: color 0.4s ease;
}



.card{
    background:#ffffff;
    padding:35px;
    border-radius:14px;
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
    transition:all .3s ease;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(0,0,0,0.18);
}