:root {
    --primary-color: #4da6ff;
    --secondary-color: #e6f5ff;
    --accent-color: #a8d5ff;
    --dark-color: #2a4d69;
    --light-color: #f0f9ff;
    --text-color: #666;
    --success-color: #4CAF50;
    --error-color: #ff4444;
    --warning-bg: rgba(255, 68, 68, 0.1);
    --requirements-bg: rgba(77, 166, 255, 0.1);
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
    --primary-gradient: linear-gradient(135deg, #4da6ff, #2a7db8);
}

.adopcion-content {
    position: relative;
    padding: 50px;
    max-width: 1200px;
    margin: 20px auto;
    transition: padding 0.5s ease;
}

.adopcion-background {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adopcion-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 90%;
    height: 6px;
    background: linear-gradient(90deg, #6ab7ff, #3d8bfd, #6ab7ff);
    transform: translateX(-50%);
    border-radius: 50px;
    opacity: 0.9;
}

.animate-fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
.animate-slide-up { opacity: 0; transform: translateY(30px); animation: slideUp 0.8s ease forwards; }
.animate-slide-left { opacity: 0; transform: translateX(-50px); animation: slideLeft 0.8s ease forwards; }
.animate-slide-right { opacity: 0; transform: translateX(50px); animation: slideRight 0.8s ease forwards; }
.animate-pulse { animation: subtlePulse 2s infinite ease-in-out; }
.animate-rotate { animation: rotate 10s infinite linear; }
.animate-rotate0 { animation: rotate0 10s infinite linear; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-trail { animation: trail 4s infinite linear; }
.animate-heartbeat { animation: heartbeat 2s infinite ease-in-out; }
@keyframes slideOutLeft { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-100%); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes subtlePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate0 { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes trail { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 10%, 30% { transform: scale(1.1); } 20%, 40% { transform: scale(1); } }
@keyframes fadeOut { from { opacity: 1; height: auto; } to { opacity: 0; height: 0; margin: 0; padding: 0; } }

.intro-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    position: relative;
    flex-direction: row;
}

.intro-box {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    flex: 1 1 50%;
    min-width: 300px;
    margin: 0 10px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.intro-box:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--hover-shadow);
    background: var(--secondary-color);
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.intro-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.intro-btn:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 5px 15px rgba(77, 166, 255, 0.5);
    background: linear-gradient(135deg, #2a7db8, #4da6ff);
}

.intro-image {
    flex: 1 1 40%;
    min-width: 300px;
    margin: 0 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.intro-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.intro-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.intro-decor {
    position: absolute;
    opacity: 0.2;
    font-size: 50px;
    z-index: 1;
}

.paw-left { top: 5%; left: 2%; transform: rotate(-20deg); }
.paw-right { bottom: 5%; right: 2%; transform: rotate(20deg); }

.meaning-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 3%;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.meaning-image {
    flex: 1 1 40%;
    min-width: 300px;
    margin: 0 10px;
    order: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.meaning-image:hover {
    transform: scale(1.05);
    filter: brightness(1.06);
}

.meaning-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.meaning-content {
    min-width: 320px;
    flex: 1 1 45%;
    order: 1;
    margin: 20px;
    padding: 35px;
    border-radius: 24px;
    background: linear-gradient(145deg, #E1F5FE, #B3E5FC);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    color: #0D47A1;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.75;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out;
    border: 1px solid #BBDEFB;
}

.meaning-content:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, #BBDEFB, #E1F5FE);
}

.meaning-content:after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    background: #0D47A1;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
}

.title-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.12rem;
    color: var(--dark-color);
    text-align: center;
    transition: color 0.3s ease;
}

.requisitos {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--dark-color);
    text-align: center;
    transition: color 0.3s ease;
}

.requirements-content p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: rgb(25, 159, 255);
    font-weight: 600;
    transition: color 0.3s ease;
}

.warning-content p:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: rgb(255, 31, 31);
    font-weight: 600;
    transition: color 0.3s ease;
}

.warning {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    text-align: center;
    transition: color 0.3s ease;
    color: rgb(146, 1, 1);
}

.meaning-content:hover .section-title {
    color: var(--primary-color);
}

.section-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: #444343;
    line-height: 1.6;
}

.meaning-decor {
    width: 50px;
    height: 50px;
    background: url(../assets/images/adopcion/heartpaw0.png) no-repeat center;
    background-size: contain;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.meaning-content:hover .meaning-decor {
    opacity: 0.8;
    transform: scale(1.1);
}

.importance-section {
    padding: 0px 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.importance-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.importance-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.importance-item:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--hover-shadow);
    background: var(--light-color);
}

.importance-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    transition: color 0.3s ease;
}

.importance-item:hover h3 {
    color: var(--dark-color);
}

.importance-item p {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.importance-item:hover p {
    color: var(--dark-color);
}

.importance-decor {
    width: 40px;
    height: 40px;
    background: url(../assets/images/adopcion/catpaw.png) no-repeat center;
    background-size: contain;
    opacity: 0.5;
}

.middle-sections-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.responsibilities-section, .limitations-section, .requirements-section, .care-section {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.warning-section {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    position: relative;
    border: 2px solid rgba(255, 163, 163, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.responsibilities-section:hover, .limitations-section:hover, .requirements-section:hover, .care-section:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.responsibilities-section::before, .limitations-section::before, .care-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.rule-item {
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 10px 0 10px 40px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.rule-item:hover {
    font-weight: 700;
    transform: translateX(5px);
}

.warning-content .rule-item:hover {
    color: rgb(255, 72, 72);
}

.requirements-content .rule-item:hover {
    color: var(--primary-color);
}

.rule-item:before {
    content: "🐾";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.rule-item:hover:before {
    transform: scale(1.2);
}

.rules-decor {
    position: absolute;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, transparent, #01498c, transparent);
    opacity: 0.4;
    bottom: 15px;
}

.warning-section {
    background: var(--warning-bg);
    margin: 40px 0;
}

.warning-section:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--error-color);
}

.warning-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--error-color), transparent);
}

.warning-content p strong {
    color: var(--error-color);
    font-weight: bold;
}

.warning-content ul li:before {
    content: "❌";
    color: var(--error-color);
}

.requirements-section {
    background: var(--requirements-bg);
    margin: 40px 0;
}

.requirements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.care-message-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.care-message p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.form-call-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    text-align: center;
    flex-direction: row;
}

.form-call-content {
    max-width: 700px;
    flex: 1 1 50%;
    min-width: 300px;
    margin: 0 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.form-call-content:hover {
    transform: translateY(-5px);
    background: rgba(230, 245, 255, 0.5);
}

.form-call-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-call-btn:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 5px 15px rgba(77, 166, 255, 0.5);
    background: linear-gradient(135deg, #2a7db8, #4da6ff);
}

.form-call-image {
    flex: 1 1 40%;
    min-width: 300px;
    margin: 0 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.form-call-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.form-call-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.warning-note {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid var(--error-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--dark-color);
    transition: background 0.3s ease, transform 0.3s ease;
}

.warning-note:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-3px);
}

.warning-note .highlight {
    font-weight: bold;
    color: var(--error-color);
}

.form-section {
    display: none;
    padding: 20px;
    background: var(--light-color);
}

.form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 0 auto;
    max-width: 950px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: scale(1.01);
    box-shadow: var(--hover-shadow);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-gradient);
}

.form-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(230, 245, 255, 0.8), rgba(240, 249, 255, 0.8));
}

.form-header h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.form-container:hover .form-header h1 {
    color: var(--primary-color);
}

.form-header p {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    padding: 0 40px;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.form-group.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.form-group:first-child {
    margin-top: 40px;
}

input[type="text"], input[type="tel"], input[type="number"], input[type="email"], textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease, transform 0.3s ease;
    background-color: #f9fdff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input[type="text"]:hover, input[type="tel"]:hover, input[type="number"]:hover, input[type="email"]:hover, textarea:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

textarea {
    min-height: 50px;
    max-height: 150px;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="number"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.3);
    background-color: white;
}

.selected-pet-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#selectedPet {
    width: 250px;
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    background-color: #e6f5ff;
    cursor: not-allowed;
    transition: transform 0.3s ease;
}

#selectedPet:hover {
    transform: scale(1.02);
}

.selected-pet-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.selected-pet-image:hover {
    transform: scale(1.1);
}

.pet-age {
    width: 80px;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.pet-ages {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pet-ages label {
    margin-bottom: 0;
    align-self: center;
    font-size: 0.95rem;
    color: var(--text-color);
}

.form-group.highlight-error {
    border: 2px solid var(--error-color);
    background-color: rgba(255, 0, 0, 0.1);
    padding: 10px;
    border-radius: var(--border-radius);
}

.form-group .error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
    font-family: 'Nunito', sans-serif;
}

.form-group.highlight-error .error-message {
    display: block;
}

.error-summary {
    display: none;
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px solid var(--error-color);
    padding: 15px;
    margin: 0 40px 20px 40px;
    border-radius: var(--border-radius);
    color: var(--error-color);
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
}

.error-summary.show {
    display: block;
}

.error-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--error-color);
}

.error-summary ul {
    list-style-type: none;
    padding: 0;
}

.error-summary li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.error-summary li:before {
    content: "";
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.form-group:hover label {
    color: var(--primary-color);
}

.form-group .required:after {
    content: " *";
    color: var(--error-color);
    font-size: 1.2em;
}

.form-group .optional:after {
    content: " (opcional)";
    color: rgb(0, 127, 225);
    font-size: 1em;
}

.radio-group, .checkbox-group {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-option {
    position: relative;
    padding: 10px 15px;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    flex-basis: calc(50% - 15px);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    background-color: #f9fdff;
    transition: all 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.checkbox-option:hover {
    transform: translateX(5px) scale(1.02);
    background: var(--accent-color);
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkbox-option label {
    margin-bottom: 0;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #f9fdff;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-option.selected {
    background-color: #cce6ff;
    border-color: var(--primary-color);
}

.checkbox-option.selected .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option.selected .checkbox-custom:after {
    content: "✔";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.radio-option {
    position: relative;
    padding: 10px 15px;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    flex-basis: calc(50% - 15px);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    background-color: #f9fdff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.radio-option:hover {
    transform: translateX(5px);
    background: var(--accent-color);
}

.radio-option.selected {
    background-color: #cce6ff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(77, 166, 255, 0.3);
}

.radio-option input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.radio-option label {
    margin-bottom: 0;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    display: block;
    width: 100%;
}

.btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    transition: all 0.3sease;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(77, 166, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(77, 166, 255, 0.4);
    background: linear-gradient(135deg, #2a7db8, #4da6ff);
}

.btn-select {
    background: linear-gradient(135deg, var(--light-color), var(--secondary-color));
    color: var(--dark-color);
    border: 2px solid transparent;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-select:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    background: var(--accent-color);
}

.btn-submit {
    background: var(--primary-gradient);
}

.btn-back {
    background: var(--dark-color);
}

.btn-back:hover {
    background: #3b5e7e;
}

.pet-type-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pet-type-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pet-type-btn:hover {
    transform: scale(1.05);
    background: var(--accent-color);
}

.pet-details-entry {
    margin-bottom: 10px;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-title {
    text-align: center;
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(230, 245, 255, 0.8), rgba(240, 249, 255, 0.8));
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.filter-btn {
    background: var(--light-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 20px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: url(/assets/images/Cursor/Cursor2_1.ico) 16 16, auto;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3);
}

.pets-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pet-card {
    width: 220px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pet-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.pet-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pet-card:hover .pet-image {
    transform: scale(1.1);
}

.pet-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.pet-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: center;
}

.pet-traits {
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.pet-traits li {
    padding: 6px 0;
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
}

.pet-traits li:before {
    content: '\f1b0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.btn-select-pet {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-select-pet:hover {
    background: linear-gradient(135deg, #2a7db8, #4da6ff);
    transform: scale(1.05);
}

.success-popup, .error-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    max-width: 90%;
    width: 400px;
    text-align: center;
    transition: none;
    opacity: 0;
}

.success-popup.show, .error-popup.show {
    display: block;
    opacity: 1;
    animation: popupFadeIn 0.5s ease forwards;
}

.success-popup {
    background: linear-gradient(135deg, #ffffff, #e6f5ff);
}

.error-popup {
    background: linear-gradient(135deg, #ff6b6b, #d32f2f);
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.popup-text {
    font-size: 1.1rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.error-popup .popup-text {
    color: white;
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.success-popup:hover, .error-popup:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

@media (max-width: 768px) {
    .intro-section, .meaning-section, .form-call-section { flex-direction: column; padding: 20px 10px; }
    .middle-sections-container { flex-direction: column; }
    .intro-box, .meaning-content, .responsibilities-section, .limitations-section, .warning-section, .requirements-section, .form-call-content { flex: 1 1 100%; margin: 0; }
    .intro-image, .meaning-image, .form-call-image { flex: 1 1 100%; margin: 20px 0; }
    .radio-option, .checkbox-option { flex-basis: 100%; }
    .form-group { padding: 0 20px; }
    .importance-item { width: 200px; } .importance-item p{font-size: 1rem;} .error-summary {
        margin: 0 20px 20px 20px;
        padding: 10px;
    }

    .error-summary h3 {
        font-size: 1.3rem;
    }

    .error-summary li {
        font-size: 0.95rem;
        padding: 3px 0 3px 20px;
    }

    .form-group.highlight-error {
        padding: 5px;
    }
}
@media (max-width: 659px){
    .importance-item {
        width: 156px;
    }
    .importance-item h3{
        font-size: 1.2rem;
    }
    .importance-item p{
        font-size: 0.94rem;
    }
    .importance-section{
        margin-top: 30px;
    }
    .adopcion-content{
        padding: 5px;
        margin: 20px 0;
    }
    .meaning-image img{
        max-height: 200px;
    }
    .intro-title{
        font-size: 1.6rem;
    }
    .section-title{
        font-size: 1.6rem;
    }
    .section-text {
        font-size: 1rem;
    }
    .rule-item{
        font-size: 1rem;
    }
    .error-summary {
        margin: 0 10px 15px 10px;
        padding: 8px;
    }

    .error-summary h3 {
        font-size: 1.2rem;
    }

    .error-summary li {
        font-size: 0.9rem;
        padding: 2px 0 2px 15px;
    }

    .error-summary li:before {
        font-size: 0.9rem;
    }
}