:root {
    --neutral-light: #f8fafc;
    --neutral-dark: #1e293b;
    --neutral-success: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --success: #10b981;
}

body.female {
    --primary: #e05b72; 
    --secondary: #a32e42;
    --accent: #f47289; 
    --primary-light: #fce7f3;
    --primary-dark: #df3955;
}

body.male {
    --primary: #487df2;
    --secondary: #1e293b;
    --accent: #387cd0; 
    --primary-light: #dbeafe;
    --primary-dark: #1e40af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background-color: var(--accent);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #64748b;
}

p.subtitle {
    color: #fafafa
}

a {
    color: var(--primary);
    text-decoration: none;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 1.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn i {
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #f3a7a7;
    color: #cb1a1a;
    border: 1px solid #f68787;
}

#location-alert {
    margin: 1rem 0;
}

.hidden {
    display: none;
}

.pet-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-bottom: 0.9rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pet-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.pet-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pet-info h3::before {
    content: "🐾";
    font-size: 1.2em;
}

.pet-info p {
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    gap: 0.5rem;
    text-transform: capitalize;
}

.pet-info strong {
    color: var(--primary);
    font-weight: 600;
    min-width: 80px;
    display: inline-block;
}

.pet-info a {
   margin: 0.5rem auto;
   display: block;
}

/* Animación sutil al cargar */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pet-info {
    animation: fadeInSlide 0.4s ease-out forwards;
}

/* Efecto hover para interactividad */
.pet-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .pet-info {
        padding: 1rem;
    }
    
    .pet-info p {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .pet-info strong {
        min-width: auto;
    }
}

#contact-form-container {
    margin: 1.5rem auto 0.5rem auto;
}

#contact-form {
    border-top: 1px solid var(--primary);
    padding-top: 1rem;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

.pet-name {
    color: var(--secondary);
    font-weight: 600;
    text-transform: capitalize;
}