:root {
            --primary: #004d99;
            --accent: #00b3b3;
            --dark: #2c3e50;
            --light-bg: #f0f2f5;
            --white: #ffffff;
            --shadow: 0 10px 20px rgba(0,0,0,0.08);
            --radius: 12px;
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        
        body {
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            margin: 0; padding: 0;
            background-color: var(--light-bg);
            color: var(--dark);
            line-height: 1.6;
            padding-top: 70px;
        }
        .navbar {
            background-color: var(--white);
            height: 100px; width: 100%;
            position: fixed; top: 0; left: 0; z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex; align-items: center; justify-content: space-between;
            padding: 0 5%;
        }
        .nav-links { list-style: none; display: flex; margin: 0; padding: 0; }
        .nav-links li { margin-left: 30px; }
        .nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
        .nav-links a:hover { color: var(--accent); }
.logo {
    display: flex;
    align-items: center;
    height: 200%;
}

.logo img {
    max-height: 200px;
    width: 150px; 
    margin: 0;   
    box-shadow: none; 
    border-radius: 0; 
}

        .container { width: 90%; max-width: 1200px; margin: 40px auto; }

        img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 20px auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
        .cert-img { width: 100%; height: 200px; object-fit: cover; margin-top: 0; border-bottom: 4px solid var(--accent); border-radius: 12px 12px 0 0; margin-bottom: 0; box-shadow: none; }

        .hero {
            background: linear-gradient(135deg, var(--white) 0%, #eef6fc 100%);
            padding: 50px; border-radius: var(--radius);
            box-shadow: var(--shadow); text-align: center; margin-bottom: 50px;
        }
        .hero h1 { color: var(--primary); font-size: 2.5rem; margin-bottom: 10px; }
        .hero-img { max-height: 700px; width: 500%; object-fit: cover; margin-bottom: 30px; }

        .section-title { text-align: center; font-size: 2rem; color: var(--primary); margin-bottom: 40px; position: relative; }
        .section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 10px auto; border-radius: 2px; }

        .about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
        .card-mvv { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--accent); transition: transform 0.3s ease; }
        .card-mvv:hover { transform: translateY(-5px); }
        .card-mvv h3 { color: var(--primary); margin-top: 0; font-size: 1.5rem; }

        .cert-scroller-container {
            width: 100%;
            overflow: hidden;
            padding: 20px 0;
        }

        .cert-scroller {
            display: flex;
            overflow-x: auto;
            gap: 30px;
            padding-bottom: 20px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch; 
        }
        
        .cert-scroller::-webkit-scrollbar { height: 10px; }
        .cert-scroller::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
        .cert-scroller::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

        .cert-card { 
            background: var(--white); 
            border-radius: var(--radius); 
            box-shadow: var(--shadow); 
            overflow: hidden; 
            border: 1px solid rgba(0,0,0,0.05);
            min-width: 320px;
            max-width: 320px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s;
            cursor: default;
        }

        .cert-card:hover { transform: translateY(-5px); }

        .cert-header { background: var(--primary); color: var(--white); padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
        .cert-header h3 { margin: 0 0 10px 0; font-size: 1.3rem; }
        .cert-header small { opacity: 0.8; display: block; margin-bottom: 15px; }
        .cert-body-content { display: none; }

        .btn-details {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 0.8rem;
            align-self: flex-start;
            transition: background 0.3s;
            margin-top: auto;
        }
        .btn-details:hover { background-color: #008f8f; }

        /* --- ESTILOS DEL MODAL (VENTANA EMERGENTE) --- */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 2000;
            display: none; /* Oculto por defecto */
            justify-content: center;
            align-items: center;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-container {
            background: var(--white);
            width: 100%;
            max-width: 800px;
            max-height: 90vh;
            border-radius: var(--radius);
            box-shadow: 0 25px 50px rgba(0,0,0,0.25);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal-header {
            background: var(--primary);
            color: white;
            padding: 20px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 { margin: 0; font-size: 1.5rem; }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;
        }
        .close-btn:hover { color: var(--accent); }

        .modal-content {
            padding: 40px;
            overflow-y: auto; 
        }

        .modal-content h4 { color: var(--accent); text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; margin-top: 30px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; font-weight: 800; }
        .modal-content ul { list-style: none; padding: 0; }
        .modal-content ul li { position: relative; padding-left: 25px; margin-bottom: 10px; color: #444; }
        .modal-content ul li::before { content: "•"; color: var(--accent); font-weight: bold; font-size: 1.5rem; position: absolute; left: 0; top: -5px; }
        
        .process-container { background-color: #f8faff; border-left: 5px solid var(--primary); padding: 25px; margin-top: 30px; border-radius: 0 8px 8px 0; }
        .process-step { margin-bottom: 15px; border-bottom: 1px solid #e1e1e1; padding-bottom: 10px; }
        .process-step:last-child { border-bottom: none; margin-bottom: 0; }
        .badge { display: inline-block; background: var(--primary); color: white; padding: 4px 10px; border-radius: 50%; font-size: 0.9rem; margin-right: 10px; font-weight: bold; }

        .modal-open { display: flex; opacity: 1; }
        .modal-open .modal-container { transform: scale(1); }
        #contactoWa {
          width: 11.5%;
          height: 11.5%;
          border-radius: 50%;
          object-fit: cover;
          transition: transform 0.3s ease;
        }
        #contactoWa:active {
          transform: scale(1.2) rotate(10deg);
        }
        #contactoWa:hover {
          transform: scale(1.1);
        }
        footer { background-color: var(--dark); color: #aaa; text-align: center; padding: 40px 20px; margin-top: 60px; }

        @media (max-width: 768px) {
            .navbar { flex-direction: column; height: auto; padding: 15px; }
            .nav-links { margin-top: 15px; flex-wrap: wrap; justify-content: center; }
            .nav-links li { margin: 5px 10px; }
            body { padding-top: 120px; }
            .hero h1 { font-size: 1.8rem; }
        }