@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.inter-Inter {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, 'Segoe UI';
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

/* Header */
.header {
    background: linear-gradient(135deg, #004570 0%, #001125 100%);
    color: white;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    height: 4rem;
    padding: 0.5rem;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    margin-top: 3rem;
    image-rendering: optimizeQuality;
    background-image: url('Recursos/fondo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #0077ff, #006ab1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(36, 117, 238, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(36, 107, 238, 0.4);
}

/* Services Section */
.services {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
}

.service-card {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #0072bb, #002147);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #0072bb, #002147);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.3rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.articuloTitulo {
    display:flex;
    justify-content: space-between;
}

.articuloTitulo a {
    min-width:4rem;
    text-decoration: none;
    color: #002872;
    font-weight: bold;
    transition: color 0.3s ease;
}

.articuloTitulo a:hover {
    color: #316cd8;
}

.verTodos-button {
    margin-top: 2rem;
    margin-left: 35%;
    width: 30%;
    display: flex;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #004a9e, #004675);
    color: white;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(36, 117, 238, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
}

.verTodos-button:hover {
    background: linear-gradient(45deg, #003f88, #00375c);
    box-shadow: 0 15px 35px rgba(36, 107, 238, 0.4);
}

/* Contact */
.contact {
    padding: 80px 2rem;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.contact-info {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.contact-info h3 {
    margin: 1rem;
    grid-column: 1 / -1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f1f5f9;
    transform: translateX(10px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #0072bb, #002147);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    width: 90%;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.footer-section {
    width: fit-content;
    max-width: 25%;
    margin: 1rem 0;
}

.footer-section img{
    width: 4.5rem;
    margin-top: 1.5rem;
    margin-right: 0.5rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
}

.modoAdmin {
    margin-right: -3rem;
    display: flex;
    justify-content: end;
    align-items: end;
    height: 100%;
    font-size: 0.9rem;
    font-style: italic;
    position: relative;
    bottom: 0;
    right: 0;
    text-align: right;
    width: fit-content;
    padding: 0;
    font-weight: 500;
}

.modoAdmin a{
    margin-top: 6.5rem;
    text-decoration: none;
    color: #555;
}


/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .logo img {
        height: 3rem;
        padding: 0.2rem;
    }
    .nav-links {
        display: none;
    }

    .services-grid {
        flex-direction: column;
    }

    .service-card {
        width: 100%;
    }

    .verTodos-button {
        margin-left: 20%;
        width: 60%;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content{
        width: 100%;
        flex-direction: column;
    }

    .footer-section{
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}