@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
  font-family: 'Amanda';
  src: url('../fonts/amanda.woff2') format('woff2'),
       url('../fonts/amanda.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
    --primary: #FF6B9D;
    --secondary: #C44569;
    --accent: #FEC8D8;
    --dark: #2C3E50;
    --light: #FFF5F7;
    --success: #4CAF50;
    --shadow: rgba(145, 145, 145, 0.2);
    
}

body {
    font-family: "Poppins", sans-serif;
    background: url("../img/bg-image.jpg");
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-repeat: repeat;
    background-size: auto;
}

.container {
    max-width: 600px;
    width: 100%;
}

.card {
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    position: relative;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/background-card.png);
    background-repeat: repeat;
    background-size: contain;
    opacity: 0.4;
    z-index: 1;
}

.card > * {
    position: relative;
    z-index: 2;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header-intro {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '🎉';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    top: -20px;
    left: -20px;
    transform: rotate(-15deg);
}

.card-header::after {
    content: '🎂';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    bottom: -10px;
    right: -10px;
    transform: rotate(15deg);
}

.card-header-intro::after {
    content: '';
    position: absolute;
    opacity: 0.6;
    bottom: 0px;
    right: 0px;
    background: url(../img/alizze-ocho.png);
    width: 180px;
    height: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 768px) {
    .header-intro h1 {
        z-index: 1;
        position: absolute;
        right: 0;
        top: 0.3em;
        transform: translateY(-50%);
        margin: 0;
        white-space: nowrap;
    }
}

.header-intro h1 {
    font-size: 1.7rem;
    color: #c69f57; 
}


.header-intro p {
    color: #ec657c;
    font-size: 60px;
    position: relative;
    z-index: 1;
    font-family: 'Amanda';
}
.header-intro {
    position: relative;
    display: inline-block;
}

.card-body {
    padding: 0 20px;
}

.card-body-content {
    padding: 15px 20px;
}

.card-footer {
    padding: 15px 10px;
    text-align: center;
}

.card-footer a {
    color: #3e3e3d;
}
.card-footer h6 {
    color: #3e3e3d;
}

.circle-wrapper {
    position: relative;
    width: fit-content;
    margin: 15px auto;
}

.circle-responsive {
    width: 20vw;
    height: 20vw;
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 35px auto;
    border: 2px solid #dcbf89;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.circle-responsive .alizze-img {
    width: 100%;
    object-fit: cover;
}
.name-absolute {
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.info-section {
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #cba764;
}

.info-fecha {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 15px;
    color: #3e3e3d;
}

.info-direccion {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-decoration: underline;
    color: #3e3e3d;
}

.info-direccion a {
    color: #3e3e3d;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--dark);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item span:first-child {
    font-size: 1.5rem;
    margin-right: 15px;
}

.info-item strong {
    color: var(--secondary);
    margin-right: 8px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E8E8E8;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    position: relative;
    display: flex;
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #c8486d;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-wrapper label {
    cursor: pointer;
    user-select: none;
    color: var(--dark);
    font-weight: 500;
}

.alergia-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.4s ease;
}

.alergia-details.show {
    max-height: 200px;
    margin-top: 15px;
}

.btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 10px 25px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--shadow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    text-align: center;
    padding: 0px 30px 25px;
}

.success-icon {
    font-size: 40px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.success-message h2 {
    color: var(--success);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--dark);
    font-size: 1.2rem;
    line-height: 1.6;
}

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.numero-consulta a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}


@media (max-width: 768px) {
    .circle-responsive {
        min-width: 200px;
        min-height: 200px;
    }
    .card-header-intro::after {
        width: 120px;
        height: 120px;
    }   
    .header-intro h1 {
        font-size: 1rem;
    }

    .header-intro p {
        font-size: 40px;
    }

    .card-body {
        padding: 0 15px;
    }

    .card-body-content {
        padding: 10px 15px;
    }

    .info-section {
        padding: 20px;
    }
}
