:root {
  --accent:#F25C05;
  --font: "Poppins", sans-serif;
  --font-title: "Playfair Display", serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background-color: #faf7f5;

}

/* HEADER */
.site-header {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.logo img { height: 100px; display: block; }


#primary_nav_wrap ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

#primary_nav_wrap ul li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 6px;
  display: inline-block;
  transition: color .18s ease;
  font-family: var(--font-title);
  position: relative;
}

#primary_nav_wrap ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform .22s ease;
}

#primary_nav_wrap ul li:hover > a::after {
  transform: translateX(-50%) scaleX(1);
}


body {
    font-family: 'Georgia', serif;
    background: #faf7f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width:1200px;
margin-top:8% ;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.image-section {
    background: linear-gradient(#bc5214a7),
                url('data:image/svg+xml,<svg xmlns="http:" viewBox="0 0 400 500"><rect fill="%23d2691e" width="400" height="500"/><path d="M200 100 Q150 150 200 200 Q250 150 200 100" fill="%23f4a460" opacity="0.3"/><ellipse cx="200" cy="250" rx="80" ry="40" fill="%23f4a460" opacity="0.3"/><circle cx="180" cy="350" r="30" fill="%23f4a460" opacity="0.3"/><circle cx="220" cy="350" r="30" fill="%23f4a460" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.bread-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.image-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.image-section p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.benefits {
    text-align: left;
    margin-top: 20px;
}

.benefits ul {
    list-style: none;
}

.benefits li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.form-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh;
    overflow-y: auto;
}

.form-section h2 {
    color: #8b4513;
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #8b4513;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #F25C05;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.terms {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.terms input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
}

.terms a {
    color: rgb(21, 110, 178);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #F25C05 );
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 112, 62, 0.389);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-link {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #F25C05;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error input {
    border-color: #d32f2f;
}

.form-group.error .error-message {
    display: block;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .image-section {
        padding: 30px;
    }

    .bread-icon {
        font-size: 60px;
    }

    .image-section h1 {
        font-size: 24px;
    }

    .form-section {
        padding: 30px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Overlay fullscreen para la animación */
#pantallaCarga {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(225, 225, 225, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.hidden {
  display: none;
}

/* Animación tostadora */
* {
  box-sizing: border-box;
  user-select: none;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

.stage {
  width: 498px;
  position: relative;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Bread */
.breads {
  width: 100%;
  height: 30px;
  position: relative;
}

.bread {
  background-color: #ffe99c;
  width: 120px;
  height: 120px;
  position: absolute;
  border-radius: 30px;
  border: 8px solid #ffb54c;
  will-change: transform;
  animation: bread 2000ms cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

.bread-left {
  left: 162px;
  z-index: 2;
}

.bread-right {
  left: 210px;
  animation-delay: 100ms;
}

@keyframes bread {
  0% {
    transform: translateY(0) scaleX(1) translateZ(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(10px) scaleX(1) translateZ(0);
    filter: brightness(0.8);
  }
  60% {
    transform: translateY(-250px) scaleX(0.8) translateZ(0);
    filter: brightness(0.8);
  }
  70% {
    transform: translateY(0) scaleX(1) translateZ(0);
    filter: brightness(1);
  }
  100% {
    transform: translateY(0) scaleX(1) translateZ(0);
    filter: brightness(1);
  }
}

.bread:before {
  content: '';
  width: 90px;
  height: 36px;
  background-color: #ffe99c;
  position: absolute;
  border-radius: 100%;
  border: 16px solid #ffb54c;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  top: -18px;
  left: 7px;
}

/* Toaster */
.toaster {
  margin-bottom: -10px;
  width: 240px;
  height: 140px;
  border: 10px solid #000;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  background-color: #6fdfff;
  position: relative;
  overflow: hidden;
  z-index: 3;
  will-change: transform;
  animation: toaster 2000ms linear infinite;
  transform-origin: bottom center;
}

@keyframes toaster {
  0% {
    border: 10px solid #000;
    background-color: #6fdfff;
    transform: scaleX(1) scaleY(1) translateZ(0);
  }
  30% {
    background-color: #b66f7f;
    border: 10px solid #7f0000;
    transform: scaleX(1.08) scaleY(0.98) translateZ(0);
  }
  50% {
    background-color: #b66f7f;
    border: 10px solid #7f0000;
    transform: scaleX(1.08) scaleY(0.98) translateZ(0);
  }
  55%{
    background-color: #b66f7f;
    border: 10px solid #7f0000;
    transform: scaleX(0.85) scaleY(1) translateZ(0);  
  }  
  60% {
    border: 10px solid #000;
    background-color: #6fdfff;
    transform: scaleX(1) scaleY(1) translateZ(0);
  }
  100% {
    border: 10px solid #000;
    background-color: #6fdfff;
    transform: scaleX(1) scaleY(1) translateZ(0);
  }
}

.toaster-white {
  width: 190px;
  height: calc(100% + 12px);
  background-color: #fff;
  border-top: 8px solid #000;
  border-right: 8px solid #000;
  border-radius: 0 35px 0 0; 
  margin-top: -8px;
  animation: toasterWhite 2000ms linear infinite;
}

@keyframes toasterWhite {
  0% {
    border-top: 8px solid #000;
    border-right: 8px solid #000;
  }
  30%, 40%, 50% {
    border-top: 8px solid #7f0000;
    border-right: 8px solid #7f0000;
  }
  60%, 100% {
    border-top: 8px solid #000;
    border-right: 8px solid #000;
  }
}

/* Eyes and mouth */
.eyes {
  width: 80px;
  height: 14px;
  position: absolute;
  left: 52px;
  top: 56px;
  display: flex;
  justify-content: space-between;
  animation: eyes 2000ms linear infinite;
}

.eye {
  width: 14px;
  height: 14px;
  background-color: #000;
  border-radius: 100%;
}

.eyes-second {
  animation: none;
  height: 20px;
  top: 50px;
}

.eye-second {
  width: 14px;
  height: 20px;
  animation: secondEye 300ms linear infinite;
}

@keyframes eyes {
  0%, 100% { opacity: 1; transform: translateY(0); }
  7% { opacity: 0; }
  50% { opacity: 0; transform: translateY(20px); }
  52% { opacity: 1; transform: translateY(0); }
}

@keyframes secondEye {
  0%,30%,60%,100% { transform: translateX(0); }
  15%,75% { transform: translateX(-2px); }
  45% { transform: translateX(2px); }
}

.mouth {
  background-color: #000;
  width: 21px;
  height: 14px;
  position: absolute;
  top: 82px;
  left: 82px;
  border-radius: 50px 50px 120px 120px;
  animation: mouth 2000ms linear infinite;
}

@keyframes mouth {
  0%,60%,100% { transform: scale(1); }
  10%,50% { transform: scale(0); }
}

.mouth:after {
  content: '';
  width: 12px;
  height: 5px;
  bottom: 3px;
  background-color: #ff4e4e;
  position: absolute;
  border-radius: 30px 30px 180px 180px;
  left: 5px;
}

/* Bottom toaster */
.toaster-bottom {
  height: 32px;
  width: 270px;
  background-color: #6fdfff;
  border-radius: 40px;
  border: 10px solid #000;
  position: relative;
  margin-bottom: -10px;
  animation: toaster 2000ms linear infinite;
}

.toaster-bottom-white {
  height: 30px;
  width: 230px;
  background-color: #fff;
  position: absolute;
  border-radius: 40px;
  border: 8px solid #000;
  bottom: -10px;
  left: -8px;
  animation: toasterBottomWhite 2000ms linear infinite;
}

@keyframes toasterBottomWhite {
  0%,60%,100% { border: 8px solid #000; }
  30%,40%,50% { border: 8px solid #7f0000; }
}

/* Bottom line */
.bottom-line {
  height: 10px;
  width: 100%;
  display: flex;
}

.bottom-line .line {
  background-color: #ccc;
  height: 10px;
  border-radius: 30px;
  width: 60px;
  animation: lines 2000ms linear infinite;
}

.bottom-line .line:nth-child(2) {
  margin: 0 10px;
  flex: 1;
}

.bottom-line .line:nth-child(3) {
  width: 30px;
}

@keyframes lines {
  0%,100% { background-color: #ccc; }
  30%,40%,50% { background-color: #f4cb28; }
}