/* ========================================
   CONFIGURACIÓN GENERAL
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}



/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 60px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    transition: 0.3s;
    position: relative;
    padding: 8px 0;
}

nav ul li a:hover {
    color: #00D1C1;
    /* Color teal moderno */
}

nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00D1C1;
    border-radius: 2px;
}

/* Formulario de Login en Header */
.login-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-container form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-container input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.login-container input:focus {
    outline: none;
    border-color: #00D1C1;
    box-shadow: 0 0 0 2px rgba(0, 209, 193, 0.1);
}

.btn-donar {
    background-color: #00D1C1;
    /* Teal moderno */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-donar:hover {
    background-color: #00B8A9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 209, 193, 0.3);
}

/* ========================================
   BANNER PRINCIPAL (HERO)
   ======================================== */
.hero-banner {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%), url('../img/banner-perro.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}



.hero-content {
    flex: 1;
    max-width: 550px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
    background: #000000 !important;
    /* Solid Black Background */
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid #1a1a1a;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-15px);
    }
}

.hero-content h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: none;
    /* Removed shadow for cleaner look on black */
    background: linear-gradient(to right, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #e0e0e0;
    text-shadow: none;
}

/* ========================================
   STATS EN HERO BANNER - SECCIÓN NARANJA (REDISEÑADA OSCURA)
   ======================================== */
.stats-overlay {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #000000 !important;
    /* Solid Black Background */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
    max-width: 320px;
    border: 1px solid #1a1a1a;
    animation: fadeInStats 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInStats {
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.stats-overlay .stat-item {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    background: #000000 !important;
    /* Solid Black to match */
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: none;
    min-width: auto;
    margin-bottom: 0;
    transform: none !important;
    animation: none !important;
}

.stats-overlay .stat-item:hover {
    background: #111;
    transform: translateY(-3px) !important;
    border-color: #00D1C1;
}

.stats-overlay .stat-item::before {
    display: none;
    /* Remove previous underline effect */
}

.stats-overlay .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00D1C1;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #00D1C1 0%, #00B8A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-overlay .stat-label {
    color: #cccccc;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Responsive adjustment for stats */
@media (max-width: 768px) {
    .stats-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none !important;
        width: 100%;
        margin-top: 30px;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }

    .stats-overlay .stat-item {
        flex: 1;
    }
}


/* ========================================
   ESTILOS PARA PÁGINAS DE INFORMACIÓN
   ======================================== */
.info-section {
    padding: 80px 0;
    line-height: 1.8;
    background-color: #fff;
    position: relative;
}

.info-section h1 {
    color: #00D1C1;
    /* Teal moderno */
    margin-bottom: 30px;
    border-bottom: 3px solid #00D1C1;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.8rem;
    position: relative;
}

.info-section h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00D1C1, #00B8A9);
    border-radius: 2px;
}

.info-section p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 20px;
}

.img-informativa {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    margin-top: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 5px solid #f0f0f0;
    transition: transform 0.4s, box-shadow 0.4s;
}

.img-informativa:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ESTILOS PARA LA TABLA DE ADOPCIÓN
   ======================================== */

/* Contenedor del formulario de selección */
form {
    margin: 20px 0;
    text-align: center;
}

select {
    padding: 12px 20px;
    border: 2px solid #00D1C1;
    /* Borde teal */
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    outline: none;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

select:hover {
    box-shadow: 0 5px 15px rgba(0, 209, 193, 0.2);
}

select:focus {
    border-color: #00B8A9;
    box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.1);
}

/* Diseño de la Tabla */
.tabla-adopcion {
    width: 100%;
    border-collapse: collapse;
    /* Elimina espacios entre celdas */
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Sombra más pronunciada */
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    /* Para que los bordes redondeados se vean bien */
    border: 2px solid #f0f0f0;
}

.tabla-adopcion thead {
    background: linear-gradient(135deg, #00D1C1 0%, #00B8A9 100%);
    /* Gradiente teal */
    color: white;
}

.tabla-adopcion th,
.tabla-adopcion td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabla-adopcion th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* Efecto cebra: filas pares con color diferente */
.tabla-adopcion tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Efecto Hover: resalta la fila donde está el mouse */
.tabla-adopcion tbody tr:hover {
    background-color: rgba(0, 209, 193, 0.1);
    /* Teal muy pálido */
    transition: 0.3s;
    transform: translateX(5px);
}

.tabla-adopcion td img {
    border-radius: 50%;
    /* Hace la foto redonda */
    border: 3px solid #00D1C1;
    width: 80px;
    height: 80px;
    object-fit: cover;
    /* Evita que la foto se estire feo */
    transition: transform 0.3s, box-shadow 0.3s;
}

.tabla-adopcion td img:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 209, 193, 0.4);
}

/* Botón específico para la tabla */
.btn-adoptar {
    background: linear-gradient(135deg, #00D1C1 0%, #00B8A9 100%);
    /* Gradiente teal */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 209, 193, 0.3);
    font-size: 0.95rem;
    display: inline-block;
}

.btn-adoptar:hover {
    background: linear-gradient(135deg, #00B8A9 0%, #009688 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 209, 193, 0.4);
}

/* ========================================
   ESTILOS PARA LA PÁGINA QUÉ HACEMOS
   ======================================== */

.servicios-grid {
    display: flex;
    /* Pone las tarjetas una al lado de la otra */
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    /* Si la pantalla es chica, baja las tarjetas */
    justify-content: center;
}

.tarjeta-servicio {
    background-color: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tarjeta-servicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00D1C1, #00B8A9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.tarjeta-servicio:hover::before {
    transform: scaleX(1);
}

.tarjeta-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 209, 193, 0.25);
    border-color: #00D1C1;
}

.tarjeta-servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 3px solid #f8f9fa;
    transition: transform 0.3s;
}

.tarjeta-servicio:hover img {
    transform: scale(1.05);
}

.tarjeta-servicio h3 {
    color: #00D1C1;
    /* Teal moderno */
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.tarjeta-servicio p {
    color: #555;
    line-height: 1.6;
}

/* ========================================
   ESTILOS PARA EL NUEVO HEADER CON REGISTRO
   ======================================== */
.form-login {
    display: inline-flex;
    gap: 5px;
}

.separador {
    color: #666;
    margin: 0 10px;
    font-weight: bold;
}

.btn-entrar {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-entrar:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.btn-registro {
    background: linear-gradient(135deg, #00D1C1 0%, #00B8A9 100%);
    /* Gradiente teal */
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #00D1C1;
    transition: all 0.3s;
    display: inline-block;
}

.btn-registro:hover {
    background-color: white;
    color: #00D1C1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 209, 193, 0.3);
}

.btn-admin {
    background-color: #4a90e2;
    /* Blue to distinguish from user actions */
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #4a90e2;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin:hover {
    background-color: white;
    color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-principal {
    display: inline-block;
    background: linear-gradient(135deg, #00D1C1 0%, #00B8A9 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 50px;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(0, 209, 193, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-principal:hover::before {
    left: 100%;
}

.btn-principal:hover {
    background: linear-gradient(135deg, #00B8A9 0%, #009688 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 209, 193, 0.5);
    color: white;
}

.btn-principal:active {
    transform: translateY(-2px);
}

.btn-secundario {
    display: inline-block;
    margin-top: 10px;
    color: #00D1C1;
    /* Teal moderno */
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00D1C1;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s;
    background-color: transparent;
    font-size: 1rem;
}

.btn-secundario:hover {
    background-color: #00D1C1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 209, 193, 0.3);
}

/* ========================================
   SECCIÓN "QUIÉNES SOMOS" DINÁMICA Y VIVAZ
   ======================================== */

.who-we-are-section {
    padding: 80px 0;
    background: linear-gradient(to right, #f8f9fa 50%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}



.who-we-are-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.who-we-are-text {
    flex: 1;
    max-width: 600px;
}

.who-we-are-text h1 {
    font-size: 3.5rem;
    color: #00D1C1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.who-we-are-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, #00D1C1, #00B8A9);
    border-radius: 3px;
}

.who-we-are-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.who-we-are-text p:nth-child(2) {
    animation-delay: 0.3s;
}

.stats {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 209, 193, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00D1C1;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.who-we-are-image {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.image-container {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 10px solid #00D1C1;
}

.image-container:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 209, 193, 0.3);
    border-color: #00B8A9;
}

.img-informativa {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.image-container:hover .img-informativa {
    transform: scale(1.03);
}

.paw-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%2300D1C1" d="M50 20 C30 20 20 30 20 50 C20 70 30 80 50 80 C70 80 80 70 80 50 C80 30 70 20 50 20 Z" opacity="0.2"/></svg>') no-repeat;
    background-size: contain;
    z-index: 2;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Animaciones para el texto */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECCIÓN "QUÉ HACEMOS" DINÁMICA Y VIVAZ
   ======================================== */

.info-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
}

.info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 193, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.info-section h1 {
    font-size: 3.2rem;
    color: #00D1C1;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #00D1C1, #00B8A9);
    border-radius: 3px;
}

.info-section p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

/* Grid de servicios */
.servicios-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tarjeta-servicio {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.6s forwards;
}

.tarjeta-servicio:nth-child(1) {
    animation-delay: 0.2s;
}

.tarjeta-servicio:nth-child(2) {
    animation-delay: 0.4s;
}

.tarjeta-servicio:nth-child(3) {
    animation-delay: 0.6s;
}

.tarjeta-servicio:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 209, 193, 0.25);
    z-index: 2;
}

/* Contenido de la tarjeta */
.card-content {
    padding: 30px;
    text-align: center;
}

.card-icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    transition: all 0.4s;
}

.tarjeta-servicio:hover .card-icon {
    transform: rotate(0deg) scale(1.1);
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00D1C1 0%, #00B8A9 100%);
    opacity: 0.15;
    z-index: 0;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
    border-radius: 50%;
}

.tarjeta-servicio h3 {
    font-size: 1.8rem;
    color: #00D1C1;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.tarjeta-servicio h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00D1C1, #00B8A9);
    border-radius: 2px;
}

.tarjeta-servicio p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

/* Barra de progreso */
.progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D1C1, #00B8A9);
    border-radius: 5px;
    transition: width 1.5s ease-out;
}

.tarjeta-servicio:hover .progress-fill {
    width: 100% !important;
}

/* Elementos decorativos */


/* ========================================
   ESTILOS PARA FORMULARIOS DE LOGIN/REGISTRO
   ======================================== */
.formulario-registro {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.formulario-registro label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.formulario-registro input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.formulario-registro input:focus {
    outline: none;
    border-color: #00D1C1;
    box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.1);
}

/* ========================================
   FOOTER (NUEVO)
   ======================================== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white !important;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    color: #00D1C1;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #00D1C1;
    border-radius: 2px;
}

.footer-column p {
    color: #bbb !important;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb !important;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-column ul li a:hover {
    color: #00D1C1;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Redes Sociales Verticales */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-item i {
    width: 25px;
    /* Ancho fijo para alinear texto */
    text-align: center;
    font-size: 1.2rem;
    color: #00D1C1;
    /* Icono turquesa */
    transition: color 0.3s;
}

.social-item:hover {
    color: #fff !important;
    transform: translateX(5px);
}

.social-item:hover i {
    color: #fff;
}

/* ========================================
   ANIMACIONES GENERALES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ========================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Animación del menú hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-banner {
        padding: 0 3%;
    }
}

@media (max-width: 768px) {

    /* Header & Navigation */
    .menu-toggle {
        display: flex;
    }

    nav {
        order: 3;
        /* Move to end or adjust as needed */
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        /* Pone el menú justo debajo del header */
        left: 0;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .header-content {
        flex-wrap: wrap;
        padding: 10px 20px;
    }

    .login-container {
        margin-left: auto;
        /* Push login to right next to logo */
        margin-right: 15px;
    }

    /* Si el login es muy ancho, bajarlo */
    @media (max-width: 600px) {
        .login-container {
            width: 100%;
            justify-content: center;
            margin: 10px 0;
            order: 2;
        }

        .menu-toggle {
            order: 1;
            /* Keep toggle accessible */
            margin-left: auto;
        }

        .logo {
            order: 0;
        }
    }

    /* Hero Banner */
    .hero-banner {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 120px 20px 60px;
        /* More padding top for fixed header */
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 0;
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-image {
        display: none;
        /* Hide the image container if using background */
    }

    /* Stats Overlay Responsive */
    .stats-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid #333;
    }

    .stats-overlay .stat-item {
        flex: 1;
        min-width: 120px;
        padding: 15px 10px;
    }

    .stats-overlay .stat-number {
        font-size: 2rem;
    }

    /* General Sections */
    .who-we-are-content {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
    }

    .image-container {
        transform: none;
        max-width: 80%;
        margin: 30px auto 0;
    }

    .servicios-grid {
        flex-direction: column;
        align-items: center;
    }

    .tarjeta-servicio {
        max-width: 100%;
        width: 100%;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px;
    }

    .logo img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn-principal {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: 100%;
    }

    .stats-overlay {
        flex-direction: column;
    }

    .login-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-login {
        flex-direction: column;
    }

    .btn-entrar,
    .btn-registro,
    .btn-admin {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .separador {
        display: none;
    }
}