:root {
    --primary: #1C5058;
    --primary-light: #16848f;
    --secondary: #FF7E5F;
    --accent: #FFD166;
    --light: #f5f5f5;
    --dark: #333;
    --gray: #777;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header hero con efecto parallax */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)),
        url('https://images.unsplash.com/photo-1586671267731-da2cf3ceeb80?q=80&w=1000') center/cover fixed;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease;
    padding: 0 20px;
}

header h1 {
    font-family: 'Boulder', sans-serif;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

header p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2em;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

/* Botones mejorados */
.cta {
    background: var(--white);
    color: var(--primary);
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.cta:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta:hover::before {
    left: 100%;
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Secciones con diseño moderno */
section {
    padding: 90px 20px;
    max-width: 1200px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.section-dark h2 {
    color: var(--white);
}

.section-dark h2::after {
    background: var(--accent);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 3px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Tarjetas de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Problema y solución */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.problem-card,
.solution-card {
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.problem-card {
    background: #FFEBEE;
    border-left: 4px solid #F44336;
}

.solution-card {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
}

.problem-card h3,
.solution-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.problem-card ul,
.solution-card ul {
    padding-left: 20px;
}

.problem-card li,
.solution-card li {
    margin-bottom: 8px;
    position: relative;
}

.problem-card li::before {
    content: "•";
    color: #F44336;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.solution-card li::before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* Formulario mejorado */

.form-container {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95em;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

form textarea {
    min-height: 150px;
    resize: vertical;
    padding: 15px 20px;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(28, 80, 88, 0.2);
    outline: none;
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 50px;
    color: var(--primary-light);
    font-size: 1.1em;
}

form button {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

form button:hover {
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}



/* Footer completo */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9em;
    background: var(--primary);
    color: var(--white);
    margin-top: 60px;
}

footer p a {
    text-decoration: none;
    color: white;
}

footer p a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}


/* Animaciones personalizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes floatReverse {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg) scale(1.1);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Elementos decorativos - Huellas de mascotas */
.pet-paw {
    position: fixed;
    z-index: 1;
    font-size: 2.5em;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    color: rgba(28, 80, 88, 0.15);
}

.pet-paw.reverse {
    animation: floatReverse 7s ease-in-out infinite;
}

/* Posiciones de las huellas */
.paw-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.paw-2 {
    top: 25%;
    right: 7%;
    animation-delay: 1s;
}

.paw-3 {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
    color: rgba(255, 126, 95, 0.15);
}

.paw-4 {
    bottom: 20%;
    right: 12%;
    animation-delay: 3s;
}

.paw-5 {
    top: 40%;
    right: 20%;
    animation-delay: 0.5s;
    color: rgba(255, 126, 95, 0.15);
}

.paw-6 {
    bottom: 30%;
    left: 15%;
    animation-delay: 1.5s;
}

.paw-7 {
    top: 70%;
    right: 5%;
    animation-delay: 2.5s;
    color: rgba(255, 126, 95, 0.15);
}

.paw-8 {
    bottom: 10%;
    left: 20%;
    animation-delay: 3.5s;
}

.paw-9 {
    top: 20%;
    right: 25%;
    animation-delay: 2s;
    color: rgba(255, 126, 95, 0.15);
}

.paw-10 {
    bottom: 40%;
    right: 25%;
    animation-delay: 0.8s;
}

.paw-11 {
    top: 50%;
    left: 25%;
    animation-delay: 1.8s;
    color: rgba(255, 126, 95, 0.15);
}

.paw-12 {
    top: 80%;
    left: 25%;
    animation-delay: 1s;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 100px 20px;
    }
    .header-content {
        max-width: 100%;
    }
    .img_hero {
        max-width: 100%;
    }

    .cta {
        min-width: 100%;
    }

    .cta-container {
        flex-direction: column;
        gap: 12px;
    }

    .problem-solution {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    section {
        padding: 70px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .form-container {
        padding: 30px;
    }

    /* Reducir huellas en móvil */
    .pet-paw {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    .form-container {
        padding: 25px;
    }
}

/* Efecto de aparición al hacer scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Añadimos estilos para el mensaje de error */
#formError {
    display: none;
    text-align: center;
    padding: 20px;
    background: #FFEBEE;
    border-radius: 8px;
    margin-top: 20px;
    color: #F44336;
}

#formError i {
    font-size: 3em;
    margin-bottom: 15px;
}